diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/crash16.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.brendan/crash16.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash16.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash16.C new file mode 100644 index 000000000..674fc4fa6 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash16.C @@ -0,0 +1,14 @@ +// { dg-do compile } +// { dg-options "-fshow-column" } +// GROUPS passed old-abort + +class Graph { // { dg-error "1:new types|1: note: \\(perhaps" } +public: + unsigned char N; + Graph(void) {} // { dg-error "7:'Graph" } +} + +Graph::Graph(void) // { dg-error "18:return type|1: error: redefinition" } +{ N = 10; +} + |