☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
ext
/
attrib18.C
☽
☼
gcc/testsuite/g++.dg/ext/attrib18.C
code
plain
raw
1
// PR c++/17542
2
// Test that we warn when an attribute preceding the class-key is ignored.
3
// { dg-do compile }
4
5
__attribute__ ((packed)) struct A // { dg-warning "attribute" }
6
{
7
char c;
8
int x;
9
void f();
10
};