repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
objc.dg
/
const-str-1.m
blob
e4cac2e57ecdf7702acefbf75311892e33a855e5
1
/* 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
}