diff options
Diffstat (limited to 'gcc/testsuite/obj-c++.dg/strings/const-str-2.mm')
-rw-r--r-- | gcc/testsuite/obj-c++.dg/strings/const-str-2.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/obj-c++.dg/strings/const-str-2.mm b/gcc/testsuite/obj-c++.dg/strings/const-str-2.mm new file mode 100644 index 000000000..e9e2fc93d --- /dev/null +++ b/gcc/testsuite/obj-c++.dg/strings/const-str-2.mm @@ -0,0 +1,8 @@ +/* Test the -fconstant-string-class flag error. */ +/* { dg-do compile } */ +/* { dg-options "-fconstant-string-class=" } */ +/* { dg-options "-mno-constant-cfstrings -fconstant-string-class=" { target *-*-darwin* } } */ + +{ dg-error "no class name specified|missing argument" "" { target *-*-* } 0 } + +void foo () {} |