testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / pr95903.c
blob6e9f68e200f1bbbcb396fbb6f4fcdd1f83251fb9
1 /* PR middle-end/95903 */
2 /* { dg-do compile { target lp64 } } */
3 /* { dg-options "-O2 -fwrapv -fdump-tree-optimized" } */
4 /* Verify that for -fwrapv the + 1 addition is performed in the parameter's
5 type before sign extending it. */
6 /* { dg-final { scan-tree-dump-times "off_\[0-9]+\\\(D\\\) \\+ 1" 2 "optimized" } } */
8 char
9 foo (const char *ptr, int off)
11 off += 1;
12 return ptr[off];
15 char
16 bar (const char *ptr, int off)
18 return ptr[off + 1];