From be17651f5cd2e94922c1b732bc8589e180698193 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Tue, 4 May 2010 20:51:19 +0000 Subject: Update clang to r103052. --- test/CodeGen/staticinit.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/CodeGen') diff --git a/test/CodeGen/staticinit.c b/test/CodeGen/staticinit.c index cd1f059e570a..8c5cdd05642d 100644 --- a/test/CodeGen/staticinit.c +++ b/test/CodeGen/staticinit.c @@ -29,3 +29,13 @@ void foo(void) { // RUN: grep "f1.l0 = internal global i32 ptrtoint (i32 ()\* @f1 to i32)" %t int f1(void) { static int l0 = (unsigned) f1; } +// PR7044 +char *f2(char key) { + switch (key) { + static char _msg[40]; + case '\014': + return _msg; + } + + return 0; +} -- cgit v1.2.3