]> granicus.if.org Git - clang/commitdiff
Make thinlto clang test more robust against LLVM changes.
authorMehdi Amini <mehdi.amini@apple.com>
Sun, 24 Apr 2016 03:44:55 +0000 (03:44 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Sun, 24 Apr 2016 03:44:55 +0000 (03:44 +0000)
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

test/Misc/thinlto.c

index ae2c148890d0fdf7c60be7e3acba1d8541449e4e..ec0f03f5a2af20b24133c7bfe8fc3d41c7955279 100644 (file)
@@ -1,9 +1,4 @@
 // 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() {}