diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2012-10-24 12:22:56 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2012-10-24 12:22:56 +0000 |
commit | 923099773fe4bbc52a25a5d3d92236b5e37cef93 (patch) | |
tree | be11fc5853e93d1951942ff455065a3aded0f488 /test/CodeGenCXX/pragma-visibility.cpp | |
parent | 04631c303ab98c8a21ff3e940fe1987a5a79858c (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/pragma-visibility.cpp')
-rw-r--r-- | test/CodeGenCXX/pragma-visibility.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenCXX/pragma-visibility.cpp b/test/CodeGenCXX/pragma-visibility.cpp index 11a38c1d5f..0640d4244e 100644 --- a/test/CodeGenCXX/pragma-visibility.cpp +++ b/test/CodeGenCXX/pragma-visibility.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s #pragma GCC visibility push(hidden) struct x { |