diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-02 07:30:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-02 07:30:13 +0000 |
commit | 9615bf855ade12ca49e1a8767349d00ecf943b63 (patch) | |
tree | 23e81d71638441dc4a11549135c8006c30caeeb7 /test/CodeGen/globalinit.c | |
parent | 2c8569d5f43f7de1fb993e84c95ea571dd9ac55e (diff) |
add codegen support for global inits that require array decay.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44511 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/globalinit.c')
-rw-r--r-- | test/CodeGen/globalinit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/globalinit.c b/test/CodeGen/globalinit.c index e94027c360..dc7cdb9c06 100644 --- a/test/CodeGen/globalinit.c +++ b/test/CodeGen/globalinit.c @@ -8,3 +8,7 @@ void foo() { x[0] = 1; } int x[10]; void bar() { x[0] = 1; } + +extern int x[]; +void *g = x; + |