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
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: @g0 = common dso_local global i32 0, align 4
|
2009-09-21 11:03:56 +08:00
|
|
|
int g0;
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: define dso_local i32 @f0()
|
2009-09-21 11:03:56 +08:00
|
|
|
int f0() {
|
|
|
|
}
|