Debian Codegraph @

gcc/testsuite/g++.dg/abi/empty27.C

raw
1 // PR c++/60336
2 // { dg-do compile }
3 // { dg-options "-Wabi=12" }
4
5 struct foo
6 {
7 int i1;
8 int i2;
9 int i3;
10 int i4;
11 int i5;
12 };
13
14 namespace N {
15 class E { };
16 void fun (class E, struct foo);
17 }
18
19 int main()
20 {
21 N::E d;
22 struct foo f = { -1, -2, -3, -4, -5 };
23
24 N::fun(d, f); // { dg-bogus "empty" }
25 return 0;
26 }