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
diff --git a/test/CodeGen/const-init.c b/test/CodeGen/const-init.c
index 957e373..128bbb5 100644
--- a/test/CodeGen/const-init.c
+++ b/test/CodeGen/const-init.c
@@ -76,4 +76,7 @@
 // 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