diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-20 18:22:23 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-20 18:22:23 +0000 |
commit | 69ab26a8623141f35e86817cfc6e0fbe7639a40f (patch) | |
tree | f7298cff89a7d46e4904bf3041ee7929a9af2665 /test/CodeGen/const-init.c | |
parent | cafeb35117578585dbbfef0bc79d8aa27712bc0e (diff) |
Handle constant int -> ptr casts of lvalue results.
- PR3463 (again).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65133 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/const-init.c')
-rw-r--r-- | test/CodeGen/const-init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGen/const-init.c b/test/CodeGen/const-init.c index 957e3733e4..128bbb54f3 100644 --- a/test/CodeGen/const-init.c +++ b/test/CodeGen/const-init.c @@ -76,4 +76,7 @@ int g15 = (int) (char) ((void*) 0 + 255); // RUN: grep '@g16 = global i64 4294967295' %t && long long g16 = (long long) ((void*) 0xFFFFFFFF); +// RUN: grep '@g17 = global i32\* @g15' %t && +int *g17 = (int *) ((long) &g15); + // RUN: true |