diff options
author | Steve Naroff <snaroff@apple.com> | 2007-12-11 00:00:01 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-12-11 00:00:01 +0000 |
commit | f727faf2ed5367f24f3090d13044639dc00a1254 (patch) | |
tree | af285fcfd854f89452bc0ae0e0d0c7467c88371d /clang/test/CodeGen/globalinit.c | |
parent | c0870605befe4298241f80846c33322e96d2c2d2 (diff) | |
download | bcm5719-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.c | 4 |
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 |