summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/virtual-base-destructor-call.cpp
blob: e791758aca9f32c3d1cec327071205bebc569e67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: clang-cc %s -emit-llvm -o - | FileCheck %s

struct basic_ios{~basic_ios(); };

template<typename _CharT> struct basic_istream : virtual public basic_ios {
  virtual ~basic_istream(){}
};

template<typename _CharT> struct basic_iostream : public basic_istream<_CharT>
{
  virtual ~basic_iostream(){}
};

basic_iostream<char> res;

int main() {
}

// CHECK: call void @_ZN9basic_iosD2Ev
OpenPOWER on IntegriCloud