summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-12 04:13:20 +0000
committerChris Lattner <sabre@nondot.org>2007-12-12 04:13:20 +0000
commitc6208a72f73541455051421aef1f5094364a36a7 (patch)
treeed521dc24ca77d035cc182af45f699131af89796 /clang/test
parentb3ba3d9827d398fd4c07019e067610f1d622ba10 (diff)
downloadbcm5719-llvm-c6208a72f73541455051421aef1f5094364a36a7.tar.gz
bcm5719-llvm-c6208a72f73541455051421aef1f5094364a36a7.zip
Fix a codegen crash on test/CodeGen/cast.c, reported by Keith.
llvm-svn: 44908
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGen/cast.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/cast.c b/clang/test/CodeGen/cast.c
new file mode 100644
index 00000000000..dfd9bb87c3a
--- /dev/null
+++ b/clang/test/CodeGen/cast.c
@@ -0,0 +1,6 @@
+// RUN: clang %s -emit-llvm
+
+extern void go(const void *p);
+float v[2] = { 0.0, 1.0 };
+void foo(void) { go(v); }
+
OpenPOWER on IntegriCloud