summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/strings/const-str-2.mm
blob: e9e2fc93db28ef3227a0265d14b96a08e115a136 (plain)
1
2
3
4
5
6
7
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 () {}