OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc.dg/] [const-str-1.m] - Blame information for rev 867

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Test errors for constant strings.  */
2
/* { dg-do compile } */
3
/* { dg-options "-fgnu-runtime" } */
4
 
5
#ifdef __cplusplus
6
extern void baz(...);
7
#endif
8
 
9
void 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
 
22
void bar()
23
{
24
  baz(@"howdah");
25
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.