summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/syntax-error-4.mm
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/obj-c++.dg/syntax-error-4.mm')
-rw-r--r--gcc/testsuite/obj-c++.dg/syntax-error-4.mm15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/obj-c++.dg/syntax-error-4.mm b/gcc/testsuite/obj-c++.dg/syntax-error-4.mm
new file mode 100644
index 000000000..0df061839
--- /dev/null
+++ b/gcc/testsuite/obj-c++.dg/syntax-error-4.mm
@@ -0,0 +1,15 @@
+/* Yet another stray infinite loop... */
+/* { dg-do compile } */
+
+@interface t
+{
+}
+- (void)go;
+@end
+@implementation t
+- (void)go
+{
+ }
+} /* { dg-error "stray .\}. between Objective\\-C\\+\\+ methods" } */
+@end
+