aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/empty28.C
blob: 7e0765d4468eeb7f69841000eb64b97301a27282 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// PR c++/60336
// { dg-do compile }
// { dg-options "-Wabi=12" }

struct foo
{
  int i1;
  int i2;
  int i3;
  int i4;
  int i5;
};

struct N {
  class E { };
  void fun (class E, struct foo) { } // { dg-bogus "empty" }
};


int main()
{
  struct N n;
  N::E d;
  struct foo f = { -1, -2, -3, -4, -5 };

  n.fun(d, f); // { dg-bogus "empty" }
  return 0;
}