summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/inheriting-constructor.cpp
blob: b921a6d2bb93094d986b0f7be80c2e9712e52ec7 (plain)
1
2
3
4
5
6
7
8
9
// 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() {}
// CHECK: define void @_ZN1BD0Ev
// CHECK: define void @_ZN1BD1Ev
// CHECK: define void @_ZN1BD2Ev