OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* objc.dg: New directory.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
objc.dg
/
const-str-1.m
1
/* Test errors for constant strings. */
2
/* { dg-do compile } */
3
/* { dg-options "-fgnu-runtime" } */
4
5
int foo()
6
{
7
baz(@"hiya"); /* { dg-error "Cannot find interface declaration" } */
8
}
9
10
@interface NXConstantString
11
@end
12
13
int bar()
14
{
15
baz(@"howdah");
16
}