Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / objc.dg / strings / const-str-1.m
blob754c99bf1ae4f2e4f798a1be1b2af76940211b77
1 /* Test errors for constant strings.  */
2 /* { dg-do compile } */
3 /* { dg-options "-mno-constant-cfstrings" { target *-*-darwin* } } */
5 #ifdef __cplusplus
6 extern void baz(...);
7 #endif
9 void foo()
11   baz(@"hiya");  /* { dg-error "annot find interface declaration" } */
14 @interface NXConstantString
16   void *isa;
17   char *str;
18   int len;
20 @end
22 void bar()
24   baz(@"howdah");