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