summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/inh-ctor11.C
blob: 4fc67a4a56a5be6d2760344458ed23a3ef9fe594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile { target c++11 } }
// { dg-options -fno-new-inheriting-ctors }

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" }