aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/const-str-1.m
blob: 1d94faa175793e688215be69a2a97ea71aa3842d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Test errors for constant strings.  */
/* { dg-do compile } */
/* { dg-options "-fgnu-runtime" } */

int foo()
{
  baz(@"hiya");  /* { dg-error "Cannot find interface declaration" } */
}

@interface NXConstantString
@end

int bar()
{
  baz(@"howdah");
}