aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/objc.dg/naming-3.m
blob: dea388c5bd7eb094718f3e2535838033e5bc7df1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Test for class name same as an unrelated struct field name. */
/* { dg-do compile } */
@interface PassThrough {

}
@end

struct S {
	int (*PassThrough)();
};

int main()
{
	PassThrough* pt;
	struct S s;
	s.PassThrough();
}