1/* Test errors for constant strings.  */
2/* { dg-do compile } */
3/* { dg-options "-mno-constant-cfstrings" { target *-*-darwin* } } */
4
5#ifdef __cplusplus
6extern void baz(...);
7#endif
8
9void foo()
10{
11  baz(@"hiya");  /* { dg-error "annot find interface declaration" } */
12}
13
14@interface NXConstantString
15{
16  void *isa;
17  char *str;
18  int len;
19}
20@end
21
22void bar()
23{
24  baz(@"howdah");
25}
26