projects
/
platform
/
upstream
/
gcc48.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 4.8.1
[platform/upstream/gcc48.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
gen-attrs-18.C
1
// PR c++/17542
2
// Test that we warn when an attribute preceding the class-key is ignored.
3
// { dg-do compile { target c++11 } }
4
5
[[gnu::packed]] struct A // { dg-warning "attribute" }
6
{
7
char c;
8
int x;
9
void f();
10
};