diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/parse/crash43.C')
-rw-r--r-- | gcc/testsuite/g++.dg/parse/crash43.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/parse/crash43.C b/gcc/testsuite/g++.dg/parse/crash43.C new file mode 100644 index 000000000..ff073cf46 --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/crash43.C @@ -0,0 +1,9 @@ +// PR c++/34600 + +namespace N +{ + void foo() + { + extern int i = 0; // { dg-error "'i' has both 'extern' and initializer" } + } +} |