diff options
Diffstat (limited to 'test/Sema/const-ptr-int-ptr-cast.c')
-rw-r--r-- | test/Sema/const-ptr-int-ptr-cast.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Sema/const-ptr-int-ptr-cast.c b/test/Sema/const-ptr-int-ptr-cast.c index 6bf44b05b3..3590583cd5 100644 --- a/test/Sema/const-ptr-int-ptr-cast.c +++ b/test/Sema/const-ptr-int-ptr-cast.c @@ -1,3 +1,5 @@ // RUN: clang -fsyntax-only -verify %s -char *a = (void*)(unsigned long long)(void*)&a; +#include <stdint.h> + +char *a = (void*)(uintptr_t)(void*)&a; |