repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
fix pr/45972
[official-gcc.git]
/
gcc
/
testsuite
/
obj-c++.dg
/
const-str-1.mm
blob
156a92e1194bbc6b2aa7191d6707f9ce30927dd9
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
}