gcc/testsuite/objc.dg/strings/const-str-2.m
raw| 1 | /* Test the -fconstant-string-class flag error. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-fconstant-string-class=" { target *-*-* } } */ |
| 4 | /* { dg-options "-mno-constant-cfstrings -fconstant-string-class=" { target *-*-darwin* } } */ |
| 5 | |
| 6 | { dg-error "no class name specified|missing argument" "" { target *-*-* } 0 } |
| 7 | |
| 8 | void foo () {} |