From e9fee8a36156610ebc5efdf1e804980f90c3edd6 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 17 Sep 2009 00:48:13 +0000 Subject: 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 --- clang/test/Frontend/ast-codegen.c | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 clang/test/Frontend/ast-codegen.c (limited to 'clang/test/Frontend/ast-codegen.c') 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"); -- cgit v1.2.3