aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/inh-ctor11.C
blob: 228e8ec6609130ae0b01c83969e515d0f075c713 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do compile { target c++11 } }

struct A
{
  A(int, ...);			// { dg-message "declared here" }
};

struct B: A
{
  using A::A;			// { dg-warning "ellipsis" }
};

B b1(42);
B b2(42, 1.0);			// { dg-error "no match" }