diff options
Diffstat (limited to 'clang/test/Sema/static-init.c')
-rw-r--r-- | clang/test/Sema/static-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/static-init.c b/clang/test/Sema/static-init.c index e6592f3bb65..99905f05574 100644 --- a/clang/test/Sema/static-init.c +++ b/clang/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; |