OSDN Git Service

PR c++/43856
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / const-str-1.m
1 /* Test errors for constant strings.  */
2 /* { dg-do compile } */
3
4 #ifdef __cplusplus
5 extern void baz(...);
6 #endif
7
8 void foo()
9 {
10   baz(@"hiya");  /* { dg-error "annot find interface declaration" } */
11 }
12
13 @interface NXConstantString
14 {
15   void *isa;
16   char *str;
17   int len;
18 }
19 @end
20
21 void bar()
22 {
23   baz(@"howdah");
24 }