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
2017-07-25 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
objc.dg
/
two-types-1.m
blob
b2370b7eefdd390273b00b64393008a0cdb0489a
1
/* { dg-do compile } */
2
/* { dg-options "-std=gnu89" } // suppress default -pedantic-errors */
3
4
@interface foo
5
struct f {}
6
struct g { int a; }; /* { dg-error "expected ';', identifier or " } */
7
8
- (struct f *) a;
9
- (struct g *) b;
10
@end
11
12
int f(struct g *x)
13
{
14
return x->a; /* { dg-bogus " has no member " } */
15
}