diff options
Diffstat (limited to 'gcc/testsuite/objc.dg/naming-3.m')
-rw-r--r-- | gcc/testsuite/objc.dg/naming-3.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/objc.dg/naming-3.m b/gcc/testsuite/objc.dg/naming-3.m new file mode 100644 index 000000000..dea388c5b --- /dev/null +++ b/gcc/testsuite/objc.dg/naming-3.m @@ -0,0 +1,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(); +} |