[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGenCXX / no-lto-unit.cpp
blobefc37c487175db322ef4020d3e59b025a911ef7f
1 // RUN: %clang_cc1 -flto=thin -triple x86_64-unknown-linux -fvisibility=hidden -emit-llvm-bc -o %t %s
2 // RUN: llvm-dis -o - %t | FileCheck %s
3 // RUN: %clang_cc1 -flto=thin -flto-unit -fno-lto-unit -triple x86_64-unknown-linux -fvisibility=hidden -emit-llvm-bc -o %t %s
4 // RUN: llvm-dis -o - %t | FileCheck %s
5 // RUN: llvm-bcanalyzer -dump %t | FileCheck %s --check-prefix=NOLTOUNIT
6 // NOLTOUNIT: <FLAGS op0=0/>
8 // CHECK-NOT: !type
9 class A {
10 virtual void f() {}
13 A *f() {
14 return new A;