summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/address-space-cast.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/address-space-cast.c')
-rw-r--r--clang/test/CodeGen/address-space-cast.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/address-space-cast.c b/clang/test/CodeGen/address-space-cast.c
new file mode 100644
index 0000000..076c2f1
--- /dev/null
+++ b/clang/test/CodeGen/address-space-cast.c
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 -emit-llvm < %s
+
+volatile unsigned char* const __attribute__((address_space(1))) serial_ctrl = 0x02;
+