In gcc/testsuite/:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 Oct 2010 10:39:05 +0000 (10:39 +0000)
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 Oct 2010 10:39:05 +0000 (10:39 +0000)
2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>

        PR objc/24393
        * objc.dg/pr24393.m: New.
        * obj-c++.dg/pr24393.mm: New.

2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>

        PR objc/28049
        * objc.dg/pr28049.m: New.
        * obj-c++.dg/pr28049.mm: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165898 138bc75d-0d04-0410-961f-82ee72b054a4

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

index ade1d2c..089f77c 100644 (file)
@@ -1,5 +1,17 @@
 2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>
 
+       PR objc/24393
+       * objc.dg/pr24393.m: New.
+       * obj-c++.dg/pr24393.mm: New.
+
+2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       PR objc/28049
+       * objc.dg/pr28049.m: New.
+       * obj-c++.dg/pr28049.mm: New.
+
+2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>
+
        * objc.dg/attributes/method-attribute-2.m: Updated test.  Method
        parameter attributes are now supported.
        * obj-c++.dg/attributes/method-attribute-2.m: Same change.
diff --git a/gcc/testsuite/obj-c++.dg/pr24393.mm b/gcc/testsuite/obj-c++.dg/pr24393.mm
new file mode 100644 (file)
index 0000000..6dae2d3
--- /dev/null
@@ -0,0 +1,10 @@
+/* { dg-compile } */
+#include <objc/objc.h>
+
+@interface Foo
+{
+  Class isa;
+}
+- (void) doSomething:(id object; /* { dg-error "xpected .\\)." } */
+- (void) someOtherMethod;
+@end
diff --git a/gcc/testsuite/obj-c++.dg/pr28049.mm b/gcc/testsuite/obj-c++.dg/pr28049.mm
new file mode 100644 (file)
index 0000000..d5ba4a1
--- /dev/null
@@ -0,0 +1,2 @@
+/* { dg-do compile } */
++ /* { dg-error "expected" } */
diff --git a/gcc/testsuite/objc.dg/pr24393.m b/gcc/testsuite/objc.dg/pr24393.m
new file mode 100644 (file)
index 0000000..6dae2d3
--- /dev/null
@@ -0,0 +1,10 @@
+/* { dg-compile } */
+#include <objc/objc.h>
+
+@interface Foo
+{
+  Class isa;
+}
+- (void) doSomething:(id object; /* { dg-error "xpected .\\)." } */
+- (void) someOtherMethod;
+@end
diff --git a/gcc/testsuite/objc.dg/pr28049.m b/gcc/testsuite/objc.dg/pr28049.m
new file mode 100644 (file)
index 0000000..d5ba4a1
--- /dev/null
@@ -0,0 +1,2 @@
+/* { dg-do compile } */
++ /* { dg-error "expected" } */