diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/vt-34961.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/vt-34961.C | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/vt-34961.C b/gcc/testsuite/g++.dg/cpp0x/vt-34961.C new file mode 100644 index 000000000..3a872146e --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/vt-34961.C @@ -0,0 +1,7 @@ +// { dg-options "-std=c++0x" } +template<typename... T> struct A +{ + static const int i __attribute__((aligned(__alignof(T)))) = 0; // { dg-error "not expanded|T" } +}; + +A<int> a; |