diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp1y/vla1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp1y/vla1.C | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/gcc/testsuite/g++.dg/cpp1y/vla1.C b/gcc/testsuite/g++.dg/cpp1y/vla1.C deleted file mode 100644 index 5708cf84e2..0000000000 --- a/gcc/testsuite/g++.dg/cpp1y/vla1.C +++ /dev/null @@ -1,40 +0,0 @@ -// { dg-do compile { target c++1y } } - -#include <typeinfo> - -void f(int n) -{ - int a[n]; - int aa[n][n]; // { dg-error "" } - &a; // { dg-error "" } - sizeof a; // { dg-error "" } - typeid(a); // { dg-error "" } - decltype(a) a2; // { dg-error "" } - typedef int at[n]; // { dg-error "" } - int (*p)[n]; // { dg-error "" } - int (&r)[n] = a; // { dg-error "" } - struct A - { - int a[n]; // { dg-error "" } - }; -} - -template <class T> -void g(int n) -{ - int a[n]; - int aa[n][n]; // { dg-error "" } - &a; // { dg-error "" } - sizeof a; // { dg-error "" } - typeid(a); // { dg-error "" } - decltype(a) a2; // { dg-error "" } - typedef int at[n]; // { dg-error "" } - int (*p)[n]; // { dg-error "" } - int (&r)[n] = a; // { dg-error "" } - struct A - { - int a[n]; // { dg-error "" } - }; -} - -template void g<int>(int); |