gcc/testsuite/gcc.dg/vect/pr115669.c
raw| 1 | /* { dg-additional-options "-fwrapv" } */ |
| 2 | |
| 3 | #include "tree-vect.h" |
| 4 | |
| 5 | int a = 10; |
| 6 | unsigned b; |
| 7 | long long c[100]; |
| 8 | int foo() |
| 9 | { |
| 10 | long long *d = c; |
| 11 | for (short e = 0; e < a; e++) |
| 12 | b += ~(d ? d[e] : 0); |
| 13 | return b; |
| 14 | } |
| 15 | |
| 16 | int main() |
| 17 | { |
| 18 | check_vect (); |
| 19 | if (foo () != -10) |
| 20 | abort (); |
| 21 | return 0; |
| 22 | } |