Clang Project

clang_source_code/test/CodeGenCXX/type-metadata-thinlto.cpp
1// RUN: %clang_cc1 -flto=thin -flto-unit -fsplit-lto-unit -triple x86_64-unknown-linux -fvisibility hidden -emit-llvm-bc -o %t %s
2// RUN: llvm-modextract -o - -n 1 %t | llvm-dis | FileCheck %s
3// RUN: llvm-modextract -b -o - -n 1 %t | llvm-bcanalyzer -dump | FileCheck %s --check-prefix=LTOUNIT
4// LTOUNIT: <FLAGS op0=8/>
5
6// CHECK: @_ZTV1A = linkonce_odr
7class A {
8  virtual void f() {}
9};
10
11A *f() {
12  return new A;
13}
14