Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
clang-tests
/
gcc-4_2-testsuite
/
src
/
g++.dg
/
ext
/
attrib18.C
blob: ab9fea0950cbdcbe18d051ea4f50002a221a41c2 [
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
();
};