repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/60336
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
abi
/
empty28.C
blob
7e0765d4468eeb7f69841000eb64b97301a27282
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
struct N {
15
class E { };
16
void fun (class E, struct foo) { } // { dg-bogus "empty" }
17
};
18
19
20
int main()
21
{
22
struct N n;
23
N::E d;
24
struct foo f = { -1, -2, -3, -4, -5 };
25
26
n.fun(d, f); // { dg-bogus "empty" }
27
return 0;
28
}