aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/lookup/using3.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/lookup/using3.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.dg/lookup/using3.C12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/lookup/using3.C b/gcc-4.9/gcc/testsuite/g++.dg/lookup/using3.C
new file mode 100644
index 000000000..f36427597
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.dg/lookup/using3.C
@@ -0,0 +1,12 @@
+// PR c++/9798
+
+namespace std { }
+namespace STL { using namespace std; }
+namespace std {
+ using namespace STL;
+}
+namespace STL {
+ struct A {
+ void B() { using namespace std; }
+ };
+}