Implement C++11 inheriting constructors.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / inh-ctor8.C
blobd55d3d2a5bfb32953e3ddec9f26800c8af6c1ec7
1 // { dg-options "-std=c++11" }
3 struct A
5   int i;
6   explicit A(int i): i(i) {}
7 };
9 struct B: A
11   using A::A;
14 void f(B);
16 int main()
18   f(B(42));                     // OK
19   f(42);                        // { dg-error "could not convert" }