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
+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
--- /dev/null
+/* { 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
--- /dev/null
+/* { 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