Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
gen-attrs-18.C
blob: 3df13e6440b8c304e588af8b34cac2d1f83823f9 [
file
] [
log
] [
blame
]
// PR c++/17542
// Test that we warn when an attribute preceding the class-key is ignored.
// { dg-do compile { target c++11 } }
[[
gnu
::
packed
]]
struct
A
// { dg-warning "attribute" }
{
char
c
;
int
x
;
void
f
();
};