Sign in
llvm
/
llvm-archive
/
f91d1660b4827134c7666ae9637f21a2741d183f
/
.
/
clang-tests
/
gcc-4_2-testsuite
/
src
/
g++.dg
/
ext
/
attrib18.C
blob: 0c3a072b5b36ad867b28f0b9a160df22309d5628 [
file
] [
log
] [
blame
]
// PR c++/17542
// Test that we warn when an attribute preceding the class-key is ignored.
// { dg-do compile }
__attribute__
((
packed
))
struct
A
{
// { dg-warning "attribute" }
char
c
;
int
x
;
void
f
();
};