We should just test the effect of the clang level option here, i.e.
that a summary is correctly emitted with -flto=thin
From: Mehdi Amini <mehdi.amini@apple.com>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@267321
91177308-0d34-0410-b5e6-
96231b3b80d8
// RUN: %clang_cc1 -flto=thin -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck %s
+// ; Check that the -flto=thin option emits a summary
// CHECK: <GLOBALVAL_SUMMARY_BLOCK
-// CHECK-NEXT: <PERMODULE
-// CHECK-NEXT: <PERMODULE
-// CHECK-NEXT: </GLOBALVAL_SUMMARY_BLOCK
-
-__attribute__((noinline)) void foo() {}
-
-int main() { foo(); }
+int main() {}