summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2010-02-10-PointerName.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2010-02-10-PointerName.c')
-rw-r--r--clang/test/CodeGen/2010-02-10-PointerName.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2010-02-10-PointerName.c b/clang/test/CodeGen/2010-02-10-PointerName.c
new file mode 100644
index 0000000..910dd30
--- /dev/null
+++ b/clang/test/CodeGen/2010-02-10-PointerName.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 %s -emit-llvm -g -o - | grep DW_TAG_pointer_type | grep -v char
+
+char i = 1;
+void foo() {
+ char *cp = &i;
+}
+