mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-28 07:49:01 -04:00

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
13 lines
291 B
C
13 lines
291 B
C
// 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");
|
|
|
|
// CHECK: @g0 = common global i32 0, align 4
|
|
int g0;
|
|
|
|
// CHECK: define i32 @f0()
|
|
int f0() {
|
|
}
|