2012-03-10 09:39:01 +08:00
|
|
|
// RUN: %clang_cc1 -std=c++11 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
|
|
|
|
|
|
|
|
// PR12219
|
|
|
|
struct A { A(int); virtual ~A(); };
|
|
|
|
struct B : A { using A::A; ~B(); };
|
|
|
|
B::~B() {}
|
2013-03-19 05:12:30 +08:00
|
|
|
|
|
|
|
B b(123);
|
|
|
|
|
2013-04-10 13:48:59 +08:00
|
|
|
struct C { template<typename T> C(T); };
|
|
|
|
struct D : C { using C::C; };
|
|
|
|
D d(123);
|
|
|
|
|
2013-08-15 14:47:53 +08:00
|
|
|
// CHECK-LABEL: define void @_ZN1BD2Ev
|
2013-12-09 22:51:17 +08:00
|
|
|
// CHECK-LABEL: define void @_ZN1BD1Ev
|
|
|
|
// CHECK-LABEL: define void @_ZN1BD0Ev
|
2013-03-19 05:12:30 +08:00
|
|
|
|
2013-08-15 14:47:53 +08:00
|
|
|
// CHECK-LABEL: define linkonce_odr void @_ZN1BC1Ei(
|
2013-03-19 05:12:30 +08:00
|
|
|
// CHECK: call void @_ZN1BC2Ei(
|
|
|
|
|
2013-08-15 14:47:53 +08:00
|
|
|
// CHECK-LABEL: define linkonce_odr void @_ZN1DC1IiEET_(
|
2013-04-10 13:48:59 +08:00
|
|
|
// CHECK: call void @_ZN1DC2IiEET_(
|
|
|
|
|
2013-08-15 14:47:53 +08:00
|
|
|
// CHECK-LABEL: define linkonce_odr void @_ZN1DC2IiEET_(
|
2013-04-10 13:48:59 +08:00
|
|
|
// CHECK: call void @_ZN1CC2IiEET_(
|
|
|
|
|
2013-08-15 14:47:53 +08:00
|
|
|
// CHECK-LABEL: define linkonce_odr void @_ZN1BC2Ei(
|
2013-03-19 05:12:30 +08:00
|
|
|
// CHECK: call void @_ZN1AC2Ei(
|