summaryrefslogtreecommitdiff
path: root/test/Frontend/ast-codegen.c
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/Frontend/ast-codegen.c
parent04631c303ab98c8a21ff3e940fe1987a5a79858c (diff)
downloadclang-923099773fe4bbc52a25a5d3d92236b5e37cef93.tar.gz
clang-923099773fe4bbc52a25a5d3d92236b5e37cef93.tar.bz2
clang-923099773fe4bbc52a25a5d3d92236b5e37cef93.tar.xz
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/Frontend/ast-codegen.c')
-rw-r--r--test/Frontend/ast-codegen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Frontend/ast-codegen.c b/test/Frontend/ast-codegen.c
index b5b2157e21..b85c5dcf50 100644
--- a/test/Frontend/ast-codegen.c
+++ b/test/Frontend/ast-codegen.c
@@ -1,5 +1,5 @@
-// RUN: %clang -emit-ast -o %t.ast %s
-// RUN: %clang -emit-llvm -S -o - %t.ast | FileCheck %s
+// RUN: %clang -target i386-unknown-unknown -emit-ast -o %t.ast %s
+// RUN: %clang -target i386-unknown-unknown -emit-llvm -S -o - %t.ast | FileCheck %s
// CHECK: module asm "foo"
__asm__("foo");