summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend
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
commite9fee8a36156610ebc5efdf1e804980f90c3edd6 (patch)
treeaa8fe83e7e6c8a95d8ce5a8387f8abec48fd2f68 /clang/test/Frontend
parent691b9337a68dbbc1dd5033fa326f7b9367425fee (diff)
downloadbcm5719-llvm-e9fee8a36156610ebc5efdf1e804980f90c3edd6.tar.gz
bcm5719-llvm-e9fee8a36156610ebc5efdf1e804980f90c3edd6.zip
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. llvm-svn: 82107
Diffstat (limited to 'clang/test/Frontend')
-rw-r--r--clang/test/Frontend/ast-codegen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Frontend/ast-codegen.c b/clang/test/Frontend/ast-codegen.c
new file mode 100644
index 00000000000..795be92a24d
--- /dev/null
+++ b/clang/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");
OpenPOWER on IntegriCloud