Fix all tests that fail with -sanitize=return.
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / pr24238.C
blob3fdd5784eb8f72aab9ff2f848d893b24afceb2f5
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 typedef struct SDL_Rect {
5     unsigned short w, h;
6 }SDL_Rect;
7 SDL_Rect *location();
8 SDL_Rect inner_location()
10     SDL_Rect r = *location();
11     r.w -= 1;
12     return r;