summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/method-namespace-2.mm
diff options
context:
space:
mode:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-17 22:34:39 +0000
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-17 22:34:39 +0000
commit260681ca78b951dfaefddda0a3817d721d6a5ae9 (patch)
tree6f8d19894181d0532fe4e207cdf889906c554043 /gcc/testsuite/obj-c++.dg/method-namespace-2.mm
parentf15f2e565f60086a06501385a941899fb4b6fb7b (diff)
downloadgcc-260681ca78b951dfaefddda0a3817d721d6a5ae9.tar.gz
In gcc/cp/:
2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> Merge from apple/trunk branch on FSF servers. 2006-04-19 Fariborz Jahanian <fjahanian@apple.com> Radar 4516785 * parser.c (cp_parser_simple_type_specifier): Don't lookup for objc object types if type is scope qualified. In gcc/testsuite/: 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> Merge from 'apple/trunk' branch on FSF servers. 2006-04-19 Fariborz Jahanian <fjahanian@apple.com> Radar 4516785 * obj-c++.dg/method-namespace-2.mm: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165602 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/obj-c++.dg/method-namespace-2.mm')
-rw-r--r--gcc/testsuite/obj-c++.dg/method-namespace-2.mm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/obj-c++.dg/method-namespace-2.mm b/gcc/testsuite/obj-c++.dg/method-namespace-2.mm
new file mode 100644
index 00000000000..3e1c9d123ba
--- /dev/null
+++ b/gcc/testsuite/obj-c++.dg/method-namespace-2.mm
@@ -0,0 +1,25 @@
+/* Test that qualified type is resolved to its proper type. */
+/* { dg-do compile } */
+
+@interface Object
+{
+ int I[100];
+}
+@end
+
+namespace HC
+{
+
+struct Object
+{
+ void test();
+};
+
+} // namespace HC
+
+int main()
+{
+ HC::Object* object;
+ object->test(); // Must compile with no error
+ return 0;
+}