gcc/testsuite/g++.old-deja/g++.brendan/crash16.C
raw| 1 | // { dg-do compile } |
| 2 | // { dg-options "-fshow-column" } |
| 3 | // GROUPS passed old-abort |
| 4 | |
| 5 | class Graph { // { dg-error "1:new types|1: note: \\(perhaps" } |
| 6 | // { dg-error "1:return type" "" { target *-*-* } .-1 } |
| 7 | public: |
| 8 | unsigned char N; |
| 9 | Graph(void) {} // { dg-message "7:'Graph" } |
| 10 | } |
| 11 | |
| 12 | Graph::Graph(void) // { dg-error "1:redefinition" } |
| 13 | { N = 10; |
| 14 | } |
| 15 |