diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/gen-attrs-38.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/gen-attrs-38.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/gen-attrs-38.C b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-38.C new file mode 100644 index 00000000000..3db981aeb22 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-38.C @@ -0,0 +1,12 @@ +// { dg-do compile { target c++11 } } +// PR c++/36625 + +template <int N> +struct A { + struct S { short f[3]; } [[gnu::aligned (N)]]; // { dg-warning "ignored" } +}; + +int main () +{ + A<4>::S s; +} |