diff options
author | Devang Patel <dpatel@apple.com> | 2007-10-25 22:19:13 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-10-25 22:19:13 +0000 |
commit | b989c9e65c6f316d493d6bc0cbed83b9ab039d36 (patch) | |
tree | 0d07ffe6cdc61a4ec02b91b3f2ecc4e200170832 /clang/test/CodeGen/compound.c | |
parent | 65e804a9c34df6785341acf0154de561c065d399 (diff) | |
download | bcm5719-llvm-b989c9e65c6f316d493d6bc0cbed83b9ab039d36.tar.gz bcm5719-llvm-b989c9e65c6f316d493d6bc0cbed83b9ab039d36.zip |
Fix "strbuf += stufflen;" crash.
llvm-svn: 43365
Diffstat (limited to 'clang/test/CodeGen/compound.c')
-rw-r--r-- | clang/test/CodeGen/compound.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/compound.c b/clang/test/CodeGen/compound.c index 778a5ce9681..09095656316 100644 --- a/clang/test/CodeGen/compound.c +++ b/clang/test/CodeGen/compound.c @@ -14,3 +14,7 @@ void test1() { short x; void test2(char c) { x += c; } +void foo(char *strbuf) { + int stufflen = 4; + strbuf += stufflen; +} |