Home | History | Annotate | Download | only in class.inhctor
      1 // RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s
      2 
      3 // Straight from the standard
      4 struct B1 {
      5   B1(int); // expected-note {{previous constructor}}
      6 };
      7 struct B2 {
      8   B2(int); // expected-note {{conflicting constructor}}
      9 };
     10 struct D1 : B1, B2 {
     11   using B1::B1; // expected-note {{inherited here}}
     12   using B2::B2; // expected-error {{already inherited constructor with the same signature}}
     13 };
     14 struct D2 : B1, B2 {
     15   using B1::B1;
     16   using B2::B2;
     17   D2(int);
     18 };
     19