2015-07-08 09:00:30 +08:00
|
|
|
// REQUIRES: x86-registered-target
|
2012-10-24 20:22:56 +08:00
|
|
|
// 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
|
2009-09-17 08:48:13 +08:00
|
|
|
|
|
|
|
// CHECK: module asm "foo"
|
|
|
|
__asm__("foo");
|
2009-09-21 11:03:56 +08:00
|
|
|
|
|
|
|
// CHECK: @g0 = common global i32 0, align 4
|
|
|
|
int g0;
|
|
|
|
|
|
|
|
// CHECK: define i32 @f0()
|
|
|
|
int f0() {
|
|
|
|
}
|