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 | 3998d3fb8e34d3122cb815f1c18a4a246695215f (patch) | |
tree | 67e3bb85f42e550d4e923a91cc66a6b95d91b089 /test/CodeGen/c-strings.c | |
parent | 6143293fa4366ee95d7e47e61bd030a34bf68b55 (diff) |
make sure the size of constant arrays is respected
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/c-strings.c')
-rw-r--r-- | test/CodeGen/c-strings.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGen/c-strings.c b/test/CodeGen/c-strings.c index baff4ddfc1..a5a7ccd3b9 100644 --- a/test/CodeGen/c-strings.c +++ b/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"; |