diff options
Diffstat (limited to 'gcc/testsuite/objc.dg/const-str-2.m')
| -rw-r--r-- | gcc/testsuite/objc.dg/const-str-2.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/objc.dg/const-str-2.m b/gcc/testsuite/objc.dg/const-str-2.m new file mode 100644 index 0000000..42dccd9 --- /dev/null +++ b/gcc/testsuite/objc.dg/const-str-2.m @@ -0,0 +1,10 @@ +/* Test the -fconstant-string-class flag error. */ +/* { dg-do compile } */ +/* { dg-options "-fconstant-string-class" } */ + +{ dg-error "no class name specified as argument to -fconstant-string-class" "" { target *-*-* } 0 } + +int foo () {} + +/* Seem bogus, should investigate some day. */ +/* { dg-error "parse error" "" { target *-*-* } 5 } */ |
