summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/no-lto-unit.cpp
blob: 3797f0742efbb662bd2474a531b95e4ad1a69b89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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
// RUN: llvm-bcanalyzer -dump %t | FileCheck %s --check-prefix=NOLTOUNIT
// NOLTOUNIT: <FLAGS op0=0/>

// CHECK-NOT: !type
class A {
  virtual void f() {}
};

A *f() {
  return new A;
}
OpenPOWER on IntegriCloud