gcc/testsuite/g++.old-deja/g++.bugs/900321_04.C
raw| 1 | // { dg-do run } |
| 2 | // g++ 1.37.1 bug 900321_04 |
| 3 | |
| 4 | // The following code causes g++ to segfault. |
| 5 | |
| 6 | // Cfront 2.0 passes this test. |
| 7 | |
| 8 | // keywords: segfault, object declaration, pointer, array, incomplete type |
| 9 | |
| 10 | struct incomplete; |
| 11 | |
| 12 | void function () |
| 13 | { |
| 14 | struct incomplete (*ptr)[]; // causes segfault |
| 15 | } |
| 16 | |
| 17 | int main () { return 0; } |