summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/using2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/debug/using2.C')
-rw-r--r--gcc/testsuite/g++.dg/debug/using2.C21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/debug/using2.C b/gcc/testsuite/g++.dg/debug/using2.C
new file mode 100644
index 000000000..94f0deae7
--- /dev/null
+++ b/gcc/testsuite/g++.dg/debug/using2.C
@@ -0,0 +1,21 @@
+// PR c++/22489
+
+namespace N { }
+
+struct T
+{
+ T () { }
+};
+
+void
+bar ()
+{
+ struct U : public T
+ {
+ void baz ()
+ {
+ using namespace N;
+ }
+ } u;
+ u.baz();
+}