gcc/testsuite/g++.old-deja/g++.other/crash37.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | // Copyright (C) 2000 Free Software Foundation, Inc. |
| 4 | // Contributed by Nathan Sidwell 23 Nov 2000 <[email protected]> |
| 5 | |
| 6 | // bug 706. We iced when meeting a decl with type error-mark-node |
| 7 | |
| 8 | class bifstream; |
| 9 | |
| 10 | |
| 11 | int main() |
| 12 | { |
| 13 | bifstream bifs; // { dg-error "" } incomplete type |
| 14 | if (!bifs) |
| 15 | { |
| 16 | } |
| 17 | return 0; |
| 18 | } |