aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/obj-c++.dg/pr24393.mm
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/obj-c++.dg/pr24393.mm')
-rw-r--r--gcc-4.9/gcc/testsuite/obj-c++.dg/pr24393.mm10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/obj-c++.dg/pr24393.mm b/gcc-4.9/gcc/testsuite/obj-c++.dg/pr24393.mm
new file mode 100644
index 000000000..269d84d9c
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/obj-c++.dg/pr24393.mm
@@ -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