Debian Codegraph @

gcc/testsuite/objc.dg/naming-3.m

raw
1 /* Test for class name same as an unrelated struct field name. */
2 /* { dg-do compile } */
3 @interface PassThrough {
4
5 }
6 @end
7
8 struct S {
9 int (*PassThrough)();
10 };
11
12 int main()
13 {
14 PassThrough* pt;
15 struct S s;
16 s.PassThrough();
17 }