diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/lookup/using35.C')
-rw-r--r-- | gcc/testsuite/g++.dg/lookup/using35.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/lookup/using35.C b/gcc/testsuite/g++.dg/lookup/using35.C new file mode 100644 index 00000000000..e7e82741d64 --- /dev/null +++ b/gcc/testsuite/g++.dg/lookup/using35.C @@ -0,0 +1,11 @@ +// { dg-do compile } + +struct A { typedef int type; }; +struct B { typedef int type; }; +struct C : B { using B::type; }; + +struct D : A, C +{ + using C::type; + void f() { type t = 0;} +}; |