r299170 - Add triple to new test
Teresa Johnson via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 30 19:36:48 PDT 2017
Author: tejohnson
Date: Thu Mar 30 21:36:47 2017
New Revision: 299170
URL: http://llvm.org/viewvc/llvm-project?rev=299170&view=rev
Log:
Add triple to new test
Attempt to fix bot errors from r299152 by using clang_cc1 and specifying
target triple to compile step.
Modified:
cfe/trunk/test/CodeGen/function-sections.c
Modified: cfe/trunk/test/CodeGen/function-sections.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/function-sections.c?rev=299170&r1=299169&r2=299170&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/function-sections.c (original)
+++ cfe/trunk/test/CodeGen/function-sections.c Thu Mar 30 21:36:47 2017
@@ -10,7 +10,7 @@
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -S -fno-data-sections -fdata-sections -o - < %s | FileCheck %s --check-prefix=DATA_SECT
// Try again through a clang invocation of the ThinLTO backend.
-// RUN: %clang -O2 %s -flto=thin -c -o %t.o
+// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -O2 %s -flto=thin -o %t.o
// RUN: llvm-lto -thinlto -o %t %t.o
// RUN: %clang -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -S -ffunction-sections -o - | FileCheck %s --check-prefix=FUNC_SECT
// RUN: %clang -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -S -fdata-sections -o - | FileCheck %s --check-prefix=DATA_SECT
More information about the cfe-commits
mailing list