2009-12-16 06:01:24 +08:00
|
|
|
// RUN: %clang -emit-ast -o %t.ast %s
|
|
|
|
// RUN: %clang -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() {
|
|
|
|
}
|