diff options
Diffstat (limited to 'test/CXX/special/class.inhctor/elsewhere.cpp')
-rw-r--r-- | test/CXX/special/class.inhctor/elsewhere.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CXX/special/class.inhctor/elsewhere.cpp b/test/CXX/special/class.inhctor/elsewhere.cpp index 184e902..b986f65 100644 --- a/test/CXX/special/class.inhctor/elsewhere.cpp +++ b/test/CXX/special/class.inhctor/elsewhere.cpp @@ -55,3 +55,10 @@ template<typename T> struct F : D<bool> { using A<T>::A; // expected-error {{'A<bool>' is not a direct base of 'F<bool>'}} }; F<bool> fb; // expected-note {{here}} + +template<typename T> +struct G : T { + using T::T; + G(int &) : G(0) {} +}; +G<B1> g(123); |