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
Merge trunk version 201119 into gupc branch.
[official-gcc.git]
/
gcc
/
testsuite
/
objc.dg
/
two-types-1.m
blob
da902a3e367a753b6b1e9f9b0181eafb1dae101d
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
}