diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.bugs/900402_01.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.bugs/900402_01.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900402_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900402_01.C new file mode 100644 index 00000000000..4e636b5ece9 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.bugs/900402_01.C @@ -0,0 +1,15 @@ +// g++ 1.37.1 bug 900402_01 + +// The following erroneous code causes g++ to abort. + +// Cfront 2.0 passes this test. + +// keywords: abort, bit-fields, function types + +typedef void (func_type) (); + +struct s { + func_type f:32; // ERROR - XFAIL *-*-* +}; + +int main () { return 0; } |