summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/pr24393.m
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/objc.dg/pr24393.m')
-rw-r--r--gcc/testsuite/objc.dg/pr24393.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/objc.dg/pr24393.m b/gcc/testsuite/objc.dg/pr24393.m
new file mode 100644
index 000000000..269d84d9c
--- /dev/null
+++ b/gcc/testsuite/objc.dg/pr24393.m
@@ -0,0 +1,10 @@
+/* { dg-do compile } */
+#include <objc/objc.h>
+
+@interface Foo
+{
+ Class isa;
+}
+- (void) doSomething:(id object; /* { dg-error "xpected .\\)." } */
+- (void) someOtherMethod;
+@end