diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2008-08-13 23:28:57 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2008-08-13 23:28:57 +0000 |
commit | cb46c144bcd70708da014a22b3bf3986d49aa4f0 (patch) | |
tree | 4fed3b84b42507bc8de391ebf2d7410693135f21 /clang/test/CodeGen/c-strings.c | |
parent | c4baa06d15a5bc59055f2ab2fa27822f80a3cebd (diff) | |
download | bcm5719-llvm-cb46c144bcd70708da014a22b3bf3986d49aa4f0.tar.gz bcm5719-llvm-cb46c144bcd70708da014a22b3bf3986d49aa4f0.zip |
make sure the size of constant arrays is respected
llvm-svn: 54769
Diffstat (limited to 'clang/test/CodeGen/c-strings.c')
-rw-r--r-- | clang/test/CodeGen/c-strings.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/CodeGen/c-strings.c b/clang/test/CodeGen/c-strings.c index baff4ddfc1b..a5a7ccd3b9c 100644 --- a/clang/test/CodeGen/c-strings.c +++ b/clang/test/CodeGen/c-strings.c @@ -1,7 +1,8 @@ // RUN: clang -emit-llvm -o %t %s && // RUN: grep "hello" %t | count 3 && // RUN: grep 'c"hello\\00"' %t | count 2 && -// RUN: grep 'c"hello\\00\\00\\00"' %t | count 1 +// RUN: grep 'c"hello\\00\\00\\00"' %t | count 1 && +// RUN: grep 'c"ola"' %t | count 1 /* Should be 3 hello string, two global (of different sizes), the rest are shared. */ @@ -32,3 +33,4 @@ void f4() { gaz(&x); } +char x[3] = "ola"; |