summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/strong-using-5.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/lookup/strong-using-5.C')
-rw-r--r--gcc/testsuite/g++.dg/lookup/strong-using-5.C26
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/lookup/strong-using-5.C b/gcc/testsuite/g++.dg/lookup/strong-using-5.C
new file mode 100644
index 000000000..555adb0c9
--- /dev/null
+++ b/gcc/testsuite/g++.dg/lookup/strong-using-5.C
@@ -0,0 +1,26 @@
+// PR c++/33486
+
+// { dg-options "" }
+
+namespace A
+{
+ inline namespace B
+ {
+ struct T
+ {
+ struct U { };
+ U f();
+ };
+ }
+
+ inline namespace C
+ {
+ void g (T::U);
+ }
+}
+
+int main()
+{
+ A::T t;
+ g(t.f());
+}