1f4a2713aSLionel Sambuc // RUN: %clang_cc1 -std=c++11 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s 2f4a2713aSLionel Sambuc 3f4a2713aSLionel Sambuc // PR12219 4f4a2713aSLionel Sambuc struct A { A(int); virtual ~A(); }; 5f4a2713aSLionel Sambuc struct B : A { using A::A; ~B(); }; ~B()6f4a2713aSLionel SambucB::~B() {} 7f4a2713aSLionel Sambuc 8f4a2713aSLionel Sambuc B b(123); 9f4a2713aSLionel Sambuc 10f4a2713aSLionel Sambuc struct C { template<typename T> C(T); }; 11f4a2713aSLionel Sambuc struct D : C { using C::C; }; 12f4a2713aSLionel Sambuc D d(123); 13f4a2713aSLionel Sambuc 14f4a2713aSLionel Sambuc // CHECK-LABEL: define void @_ZN1BD2Ev 15*0a6a1f1dSLionel Sambuc // CHECK-LABEL: define void @_ZN1BD1Ev 16*0a6a1f1dSLionel Sambuc // CHECK-LABEL: define void @_ZN1BD0Ev 17f4a2713aSLionel Sambuc 18f4a2713aSLionel Sambuc // CHECK-LABEL: define linkonce_odr void @_ZN1BC1Ei( 19f4a2713aSLionel Sambuc // CHECK: call void @_ZN1BC2Ei( 20f4a2713aSLionel Sambuc 21f4a2713aSLionel Sambuc // CHECK-LABEL: define linkonce_odr void @_ZN1DC1IiEET_( 22f4a2713aSLionel Sambuc // CHECK: call void @_ZN1DC2IiEET_( 23f4a2713aSLionel Sambuc 24f4a2713aSLionel Sambuc // CHECK-LABEL: define linkonce_odr void @_ZN1DC2IiEET_( 25f4a2713aSLionel Sambuc // CHECK: call void @_ZN1CC2IiEET_( 26f4a2713aSLionel Sambuc 27f4a2713aSLionel Sambuc // CHECK-LABEL: define linkonce_odr void @_ZN1BC2Ei( 28f4a2713aSLionel Sambuc // CHECK: call void @_ZN1AC2Ei( 29