aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicola Pero <nicola.pero@meta-innovation.com>2010-10-24 16:48:57 +0000
committerNicola Pero <nicola@gcc.gnu.org>2010-10-24 16:48:57 +0000
commita5cd07463dac757a2899ed43e28494ce68c5b2f6 (patch)
tree44b08899df7e64eb5defcee41f085e64af800728
parent40d398e057a1e4b7908a277ecf87d6ff07f5fa81 (diff)
downloadgcc-a5cd07463dac757a2899ed43e28494ce68c5b2f6.zip
gcc-a5cd07463dac757a2899ed43e28494ce68c5b2f6.tar.gz
gcc-a5cd07463dac757a2899ed43e28494ce68c5b2f6.tar.bz2
re PR objc/45735 (ICE in objc_add_method, at objc/objc-act.c:6941)
2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com> PR objc/45735 * obj-c.dg/pr45735.mm: New. * obj-c++.dg/pr45735.mm: New. From-SVN: r165901
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/obj-c++.dg/pr45735.mm4
-rw-r--r--gcc/testsuite/objc.dg/pr45735.m4
3 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 089f77c..9ee2d3c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,11 @@
2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
+ PR objc/45735
+ * obj-c.dg/pr45735.mm: New.
+ * obj-c++.dg/pr45735.mm: New.
+
+2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
+
PR objc/24393
* objc.dg/pr24393.m: New.
* obj-c++.dg/pr24393.mm: New.
diff --git a/gcc/testsuite/obj-c++.dg/pr45735.mm b/gcc/testsuite/obj-c++.dg/pr45735.mm
new file mode 100644
index 0000000..852ee25
--- /dev/null
+++ b/gcc/testsuite/obj-c++.dg/pr45735.mm
@@ -0,0 +1,4 @@
+/* { dg-compile } */
+@interface Fraction
+-(void) setNumerator: (int) :(int) ; /* { dg-error "expected identifier" } */
+@end
diff --git a/gcc/testsuite/objc.dg/pr45735.m b/gcc/testsuite/objc.dg/pr45735.m
new file mode 100644
index 0000000..852ee25
--- /dev/null
+++ b/gcc/testsuite/objc.dg/pr45735.m
@@ -0,0 +1,4 @@
+/* { dg-compile } */
+@interface Fraction
+-(void) setNumerator: (int) :(int) ; /* { dg-error "expected identifier" } */
+@end