aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/array-pointer-decay.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-08-08 21:04:35 +0000
committerAnders Carlsson <andersca@mac.com>2009-08-08 21:04:35 +0000
commit824957643238ea1712b966deee9c65043ac6ffea (patch)
tree2b09cb21a006ebde1b63bc509dd6153cd6e48462 /test/CodeGenCXX/array-pointer-decay.cpp
parent87b5fa9648b144f41cb4cda98c3e37c2851bf846 (diff)
Use CastExpr::CK_ArrayToPointerDecay and fix an assert.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78502 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/array-pointer-decay.cpp')
-rw-r--r--test/CodeGenCXX/array-pointer-decay.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGenCXX/array-pointer-decay.cpp b/test/CodeGenCXX/array-pointer-decay.cpp
new file mode 100644
index 0000000000..5751b67b74
--- /dev/null
+++ b/test/CodeGenCXX/array-pointer-decay.cpp
@@ -0,0 +1,7 @@
+// RUN: clang-cc %s -emit-llvm -o -
+
+void f(const char*);
+
+void g() {
+ f("hello");
+}