Author: mehdi_amini Date: Sat Apr 23 22:44:55 2016 New Revision: 267321 URL: http://llvm.org/viewvc/llvm-project?rev=267321&view=rev Log: Make thinlto clang test more robust against LLVM changes.
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.am...@apple.com> Modified: cfe/trunk/test/Misc/thinlto.c Modified: cfe/trunk/test/Misc/thinlto.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Misc/thinlto.c?rev=267321&r1=267320&r2=267321&view=diff ============================================================================== --- cfe/trunk/test/Misc/thinlto.c (original) +++ cfe/trunk/test/Misc/thinlto.c Sat Apr 23 22:44:55 2016 @@ -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() {} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits