diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-21 03:03:56 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-21 03:03:56 +0000 |
commit | a674bf437ea0f85f2ffdab20df591a6c410c63ed (patch) | |
tree | d5b3d09d2e91a5469a0dd00660a18cbb70236c03 /test/Frontend/ast-codegen.c | |
parent | d5b6126389e1e2fd89e498fe17da4bb44ece0302 (diff) |
Switch ProcessASTInputFile to still use ParseAST.
- Currently this requires us to fake an input file.
- This allows Sema to be keep all the logic for how to pull decls out of the external AST source and how to handle things like tentative definitions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Frontend/ast-codegen.c')
-rw-r--r-- | test/Frontend/ast-codegen.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Frontend/ast-codegen.c b/test/Frontend/ast-codegen.c index 795be92a24..1fe74d4fbe 100644 --- a/test/Frontend/ast-codegen.c +++ b/test/Frontend/ast-codegen.c @@ -3,3 +3,10 @@ // CHECK: module asm "foo" __asm__("foo"); + +// CHECK: @g0 = common global i32 0, align 4 +int g0; + +// CHECK: define i32 @f0() +int f0() { +} |