PR c++/60336
[official-gcc.git] / gcc / testsuite / g++.dg / abi / empty28.C
blob7e0765d4468eeb7f69841000eb64b97301a27282
1 // PR c++/60336
2 // { dg-do compile }
3 // { dg-options "-Wabi=12" }
5 struct foo
7   int i1;
8   int i2;
9   int i3;
10   int i4;
11   int i5;
14 struct N {
15   class E { };
16   void fun (class E, struct foo) { } // { dg-bogus "empty" }
20 int main()
22   struct N n;
23   N::E d;
24   struct foo f = { -1, -2, -3, -4, -5 };
26   n.fun(d, f); // { dg-bogus "empty" }
27   return 0;