view gcc/testsuite/g++.dg/abi/nullptr-align2.C @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

// { dg-do compile { target c++11 } }
// { dg-options "-fabi-version=0 -Wabi=8" }

struct A
{
  decltype(nullptr) n;
  decltype(nullptr) n2;
};

struct B
{
  void *p;
  decltype(nullptr) n;
};

struct C
{
  char c;
  decltype(nullptr) n;		// { dg-warning "alignment" }
};