PR4013 and PR4105: pointer-like types can only be cast to/from integers
and other pointer-like types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70531 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/static-init.c b/test/Sema/static-init.c
index e6592f3..99905f0 100644
--- a/test/Sema/static-init.c
+++ b/test/Sema/static-init.c
@@ -5,7 +5,7 @@
static int f = 10;
static int b = f; // expected-error {{initializer element is not a compile-time constant}}
-float r = (float) &r; // expected-error {{initializer element is not a compile-time constant}}
+float r = (float) (intptr_t) &r; // expected-error {{initializer element is not a compile-time constant}}
intptr_t s = (intptr_t) &s;
_Bool t = &t;