In gcc/testsuite/: 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
authorNicola Pero <nicola.pero@meta-innovation.com>
Wed, 20 Oct 2010 09:03:06 +0000 (09:03 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Wed, 20 Oct 2010 09:03:06 +0000 (09:03 +0000)
In gcc/testsuite/:
2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>

        PR objc/23709
        * objc.dg/pr23709.m: New.
        * obj-c++.dg/pr23709.m: New.

From-SVN: r165713

gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/pr23709.mm [new file with mode: 0644]
gcc/testsuite/objc.dg/pr23709.m [new file with mode: 0644]

index a7241cc..74c11e8 100644 (file)
@@ -1,3 +1,9 @@
+2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       PR objc/23709
+       * objc.dg/pr23709.m: New.
+       * obj-c++.dg/pr23709.m: New.    
+
 2010-10-19  Paolo Carlini  <paolo.carlini@oracle.com>
 
         PR c++/46046
diff --git a/gcc/testsuite/obj-c++.dg/pr23709.mm b/gcc/testsuite/obj-c++.dg/pr23709.mm
new file mode 100644 (file)
index 0000000..018b53a
--- /dev/null
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+
+@interface A
++(void)method: (int)parameter {} /* { dg-error "expected" } */
+@end 
+
+@implementation A
++(void)method: (int)parameter
+{
+  *parameter; /* { dg-error "invalid type argument" } */
+}
+@end
diff --git a/gcc/testsuite/objc.dg/pr23709.m b/gcc/testsuite/objc.dg/pr23709.m
new file mode 100644 (file)
index 0000000..7ff9b60
--- /dev/null
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+
+@interface A
++(void)method: (int)parameter {} /* { dg-error "expected" } */
+@end 
+
+@implementation A
++(void)method: (int)parameter
+{
+  *parameter; /* { dg-error "invalid type argument" } */
+}
+@end