aboutsummaryrefslogtreecommitdiff
path: root/test/Frontend/ast-codegen.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-17 00:48:13 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-17 00:48:13 +0000
commitaca2ebdf416ade724e71a81aa150977ac5baa9b0 (patch)
tree5fe9f21023dd2ac4e6b0d7a908d14fd4eddfb863 /test/Frontend/ast-codegen.c
parent0794d8d50ff9bb2613d836357fc156da33f60d54 (diff)
Initial support for code generation from .ast files.
- Doesn't actually work yet because only module level asm's get correctly marked as externally visible in the PCH. - Other things like 'clang-cc foo.ast -ast-dump' now work, as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Frontend/ast-codegen.c')
-rw-r--r--test/Frontend/ast-codegen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Frontend/ast-codegen.c b/test/Frontend/ast-codegen.c
new file mode 100644
index 0000000000..795be92a24
--- /dev/null
+++ b/test/Frontend/ast-codegen.c
@@ -0,0 +1,5 @@
+// RUN: clang -emit-ast -o %t.ast %s &&
+// RUN: clang -emit-llvm -S -o - %t.ast | FileCheck %s
+
+// CHECK: module asm "foo"
+__asm__("foo");