summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg
diff options
context:
space:
mode:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-27 18:17:14 +0000
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-27 18:17:14 +0000
commit5f317c8c55ef651e3527e967da3ffb0d19e94dfb (patch)
tree19a4fcdc53c7001b27ccef3f130c8f27436a9ba7 /gcc/testsuite/obj-c++.dg
parent599471650d6f0fb42b1c1c7e6b24ca21e65132fa (diff)
downloadgcc-5f317c8c55ef651e3527e967da3ffb0d19e94dfb.tar.gz
In gcc/cp/:
2010-11-27 Nicola Pero <nicola.pero@meta-innovation.com> PR objc++/46222 * decl.c (grokdeclarator): Replaced an assert (for a case that can never happen in C++, but could happen in ObjC++ for invalid code) with a check that prints an error message and returns error_mark_node. In gcc/testsuite/: 2010-11-27 Nicola Pero <nicola.pero@meta-innovation.com> PR objc++/46222 * obj-c++.dg/property/at-property-2.mm: Uncommented testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167202 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/obj-c++.dg')
-rw-r--r--gcc/testsuite/obj-c++.dg/property/at-property-2.mm3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/testsuite/obj-c++.dg/property/at-property-2.mm b/gcc/testsuite/obj-c++.dg/property/at-property-2.mm
index 7966b9a44d0..d8433dffcd4 100644
--- a/gcc/testsuite/obj-c++.dg/property/at-property-2.mm
+++ b/gcc/testsuite/obj-c++.dg/property/at-property-2.mm
@@ -8,7 +8,6 @@
}
@property int name __attribute__((deprecated));
@property int table __attribute__((xxx)); /* { dg-warning ".xxx. attribute directive ignored" } */
-/* FIXME: the test below should not ICE.
-@property void function (void); { dg-error "can.t make .function. into a method" } */
+@property void function (void); /* { dg-error "declaration of function .function. in invalid context" } */
@property typedef int j; /* { dg-error "invalid type for property" } */
@end