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. llvm-svn: 166551
11 lines
286 B
C++
11 lines
286 B
C++
// RUN: %clang_cc1 -triple i386-unknown-unknown -std=c++11 -S -emit-llvm -o - %s | FileCheck %s
|
|
|
|
struct A { int a[1]; };
|
|
typedef A x[];
|
|
int f() {
|
|
x{{{1}}};
|
|
// CHECK: define i32 @_Z1fv
|
|
// CHECK: store i32 1
|
|
// (It's okay if the output changes here, as long as we don't crash.)
|
|
}
|