summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/globalinit.c
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-12-11 00:00:01 +0000
committerSteve Naroff <snaroff@apple.com>2007-12-11 00:00:01 +0000
commitf727faf2ed5367f24f3090d13044639dc00a1254 (patch)
treeaf285fcfd854f89452bc0ae0e0d0c7467c88371d /clang/test/CodeGen/globalinit.c
parentc0870605befe4298241f80846c33322e96d2c2d2 (diff)
downloadbcm5719-llvm-f727faf2ed5367f24f3090d13044639dc00a1254.tar.gz
bcm5719-llvm-f727faf2ed5367f24f3090d13044639dc00a1254.zip
Explicitly set the string literal type from "char *" to "constant array of char".
At this point, I am fairly certain the front-end is correct. Unfortunately, the back-end is still unhappy. That said, I've commented out the two lines in globalinit.c that are causing problems. Chris, please have a look...thanks! llvm-svn: 44823
Diffstat (limited to 'clang/test/CodeGen/globalinit.c')
-rw-r--r--clang/test/CodeGen/globalinit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/globalinit.c b/clang/test/CodeGen/globalinit.c
index f47fd5c4577..36cde9f45d6 100644
--- a/clang/test/CodeGen/globalinit.c
+++ b/clang/test/CodeGen/globalinit.c
@@ -16,6 +16,6 @@ int latin_ptr2len (char *p);
int (*mb_ptr2len) (char *p) = latin_ptr2len;
-char string[8] = "string"; // extend init
-char string2[4] = "string"; // truncate init
+//char string[8] = "string"; // extend init
+//char string2[4] = "string"; // truncate init
OpenPOWER on IntegriCloud