This is a reduced testcase from a cast to Function failing during bootstrap.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194430
91177308-0d34-0410-b5e6-
96231b3b80d8
template class A<int>;
B::~B() {}
}
+
+namespace test8 {
+ // Test that we replace ~zed with ~bar which is an alias to ~foo.
+ // CHECK-DAG: call i32 @__cxa_atexit({{.*}}@_ZN5test83barD2Ev
+ // CHECK-DAG: @_ZN5test83barD2Ev = alias {{.*}} @_ZN5test83fooD2Ev
+ struct foo {
+ ~foo();
+ };
+ foo::~foo() {}
+ struct bar : public foo {
+ ~bar();
+ };
+ bar::~bar() {}
+ struct zed : public bar {};
+ zed foo;
+}