fix pr/45972
[official-gcc.git] / gcc / testsuite / obj-c++.dg / const-str-1.mm
blob156a92e1194bbc6b2aa7191d6707f9ce30927dd9
1 /* Test errors for constant strings.  */
2 /* { dg-do compile } */
4 #ifdef __cplusplus
5 extern void baz(...);
6 #endif
8 void foo()
10   baz(@"hiya");  /* { dg-error "annot find interface declaration" } */
13 @interface NXConstantString
15   void *isa;
16   char *str;
17   int len;
19 @end
21 void bar()
23   baz(@"howdah");