| commit | b989c9e65c6f316d493d6bc0cbed83b9ab039d36 | [log] [tgz] |
|---|---|---|
| author | Devang Patel <dpatel@apple.com> | Thu Oct 25 22:19:13 2007 +0000 |
| committer | Devang Patel <dpatel@apple.com> | Thu Oct 25 22:19:13 2007 +0000 |
| tree | 0d07ffe6cdc61a4ec02b91b3f2ecc4e200170832 | |
| parent | 65e804a9c34df6785341acf0154de561c065d399 [diff] [blame] |
Fix "strbuf += stufflen;" crash. llvm-svn: 43365
diff --git a/clang/test/CodeGen/compound.c b/clang/test/CodeGen/compound.c index 778a5ce..0909565 100644 --- a/clang/test/CodeGen/compound.c +++ b/clang/test/CodeGen/compound.c
@@ -14,3 +14,7 @@ short x; void test2(char c) { x += c; } +void foo(char *strbuf) { + int stufflen = 4; + strbuf += stufflen; +}