summaryrefslogtreecommitdiffstats
path: root/test/Sema/const-ptr-int-ptr-cast.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/const-ptr-int-ptr-cast.c')
-rw-r--r--test/Sema/const-ptr-int-ptr-cast.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Sema/const-ptr-int-ptr-cast.c b/test/Sema/const-ptr-int-ptr-cast.c
new file mode 100644
index 0000000..4e08bff
--- /dev/null
+++ b/test/Sema/const-ptr-int-ptr-cast.c
@@ -0,0 +1,5 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+#include <stdint.h>
+
+char *a = (void*)(uintptr_t)(void*)&a;
OpenPOWER on IntegriCloud