summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2012-10-24 12:22:56 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2012-10-24 12:22:56 +0000
commit923099773fe4bbc52a25a5d3d92236b5e37cef93 (patch)
treebe11fc5853e93d1951942ff455065a3aded0f488 /test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp
parent04631c303ab98c8a21ff3e940fe1987a5a79858c (diff)
A number of test cases assume that an "int" parameter or return value
will be represented in the IR as a plain "i32" type. This causes the tests to spuriously fail on platforms where int is not a 32-bit type, or where the ABI requires attributes like "signext" or "zeroext" to be used. This patch adds -triple or -target parameters to force those tests to use the i386-unknown-unknown target. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166551 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp')
-rw-r--r--test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp b/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp
index 8361680546..7acc07d0c5 100644
--- a/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp
+++ b/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fexceptions -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -triple i386-unknown-unknown -fexceptions -emit-llvm %s -o - | FileCheck %s
int c(void) __attribute__((const));
int p(void) __attribute__((pure));
int t(void);