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