diff options
Diffstat (limited to 'clang/test/Frontend/ast-codegen.c')
-rw-r--r-- | clang/test/Frontend/ast-codegen.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Frontend/ast-codegen.c b/clang/test/Frontend/ast-codegen.c new file mode 100644 index 0000000..b5b2157 --- /dev/null +++ b/clang/test/Frontend/ast-codegen.c @@ -0,0 +1,12 @@ +// RUN: %clang -emit-ast -o %t.ast %s +// RUN: %clang -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() { +} |