summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-21 04:41:23 +0000
committerChris Lattner <sabre@nondot.org>2009-04-21 04:41:23 +0000
commita9aeea9f275feb39a34c6c2f28d963bb751e17fe (patch)
tree00f541a2a76737ecd508cc2c7e8f918c29f5baff /clang/test/CodeGen
parent92b29b2f9ff225553c9719ae045f961addd15179 (diff)
downloadbcm5719-llvm-a9aeea9f275feb39a34c6c2f28d963bb751e17fe.tar.gz
bcm5719-llvm-a9aeea9f275feb39a34c6c2f28d963bb751e17fe.zip
use of predefined identifiers like __func__ at global scope warn in sema,
but crashed codegen. Fix this to report the name of the llvm function. This fixes rdar://6808051 llvm-svn: 69658
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r--clang/test/CodeGen/blocks.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/blocks.c b/clang/test/CodeGen/blocks.c
index 4203fce051d..c7fe3a91d25 100644
--- a/clang/test/CodeGen/blocks.c
+++ b/clang/test/CodeGen/blocks.c
@@ -17,4 +17,10 @@ struct s0 f2(struct s0 a0) {
return ^(struct s0 a1){ return a1; }(a0);
}
+// This should not crash: rdar://6808051
+void *P = ^{
+ void *Q = __func__;
+};
+
+
// RUN: true
OpenPOWER on IntegriCloud