forked from OSchip/llvm-project
14 lines
393 B
C++
14 lines
393 B
C++
|
// RUN: %clang_cc1 -flto=thin -triple x86_64-unknown-linux -fvisibility hidden -emit-llvm-bc -o %t %s
|
||
|
// RUN: llvm-dis -o - %t | FileCheck %s
|
||
|
// RUN: %clang_cc1 -flto=thin -flto-unit -fno-lto-unit -triple x86_64-unknown-linux -fvisibility hidden -emit-llvm-bc -o %t %s
|
||
|
// RUN: llvm-dis -o - %t | FileCheck %s
|
||
|
|
||
|
// CHECK-NOT: !type
|
||
|
class A {
|
||
|
virtual void f() {}
|
||
|
};
|
||
|
|
||
|
A *f() {
|
||
|
return new A;
|
||
|
}
|