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(); }