summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/compound.c
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-10-25 22:19:13 +0000
committerDevang Patel <dpatel@apple.com>2007-10-25 22:19:13 +0000
commitb989c9e65c6f316d493d6bc0cbed83b9ab039d36 (patch)
tree0d07ffe6cdc61a4ec02b91b3f2ecc4e200170832 /clang/test/CodeGen/compound.c
parent65e804a9c34df6785341acf0154de561c065d399 (diff)
downloadbcm5719-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.c4
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;
+}
OpenPOWER on IntegriCloud