From: Eli Friedman Date: Thu, 18 Jun 2009 02:04:19 +0000 (+0000) Subject: Add a target triple to a couple of tests which depend on it. Reported X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb44e0ac55a0398012f3cfcc49047eb9f311ceda;p=clang Add a target triple to a couple of tests which depend on it. Reported by Mark Cianciosa on cfe-dev. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73672 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/2009-05-22-callingconv.c b/test/CodeGen/2009-05-22-callingconv.c index 2b70d840c0..8afc656843 100644 --- a/test/CodeGen/2009-05-22-callingconv.c +++ b/test/CodeGen/2009-05-22-callingconv.c @@ -1,4 +1,4 @@ -// RUN: clang-cc %s -emit-llvm -o - | grep call | grep x86_stdcallcc +// RUN: clang-cc %s -emit-llvm -o - -triple i386-unknown-unknown | grep call | grep x86_stdcallcc void abort(void) __attribute__((__noreturn__)); typedef void re_string_t; typedef void re_dfa_t; diff --git a/test/CodeGen/libcalls.c b/test/CodeGen/libcalls.c index 695321622f..ea9e0c3dd9 100644 --- a/test/CodeGen/libcalls.c +++ b/test/CodeGen/libcalls.c @@ -1,7 +1,7 @@ -// RUN: clang-cc -fmath-errno=1 -emit-llvm -o %t %s && +// RUN: clang-cc -fmath-errno=1 -emit-llvm -o %t %s -triple i386-unknown-unknown && // RUN: grep "declare " %t | count 6 && // RUN: grep "declare " %t | grep "@llvm." | count 1 && -// RUN: clang-cc -fmath-errno=0 -emit-llvm -o %t %s && +// RUN: clang-cc -fmath-errno=0 -emit-llvm -o %t %s -triple i386-unknown-unknown && // RUN: grep "declare " %t | count 6 && // RUN: grep "declare " %t | grep -v "@llvm." | count 0