Message ID | 963e7657-0e40-9d73-f199-ffc709761428@mentor.com |
---|---|
State | New |
Headers | show |
diff --git a/gcc/testsuite/c-c++-common/ubsan/object-size-9.c b/gcc/testsuite/c-c++-common/ubsan/object-size-9.c index 46f1fb9..fec920d 100644 --- a/gcc/testsuite/c-c++-common/ubsan/object-size-9.c +++ b/gcc/testsuite/c-c++-common/ubsan/object-size-9.c @@ -31,6 +31,7 @@ static struct C f2 (int i) { struct C x; + struct C x2; x.d[i] = 'z'; return x; } @@ -45,6 +46,7 @@ static struct C f3 (int i) { struct C x; + struct C x2; char *p = x.d; p += i; *p = 'z';