summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/empty27.C
blob: 5d14e7c6a03226428abdc11c55511eaea073fda4 (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
// PR c++/60336
// { dg-do compile }
// { dg-options "-Wabi=12" }

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

namespace N {
  class E { };
  void fun (class E, struct foo);
}

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

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