summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/type-metadata-thinlto.cpp
blob: 2a586fc4c37cb51f7fa708a1b1bdc9f11ba86018 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -flto=thin -flto-unit -triple x86_64-unknown-linux -fvisibility hidden -emit-llvm-bc -o %t %s
// RUN: llvm-modextract -o - -n 1 %t | llvm-dis | FileCheck %s

// CHECK: @_ZTV1A = linkonce_odr
class A {
  virtual void f() {}
};

A *f() {
  return new A;
}