Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / pr15784-4.c
blob6549c72055556062cb06a032d1db7405d81da020
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 int a (int x) {
4 return ~x + 1; /* -x */
7 int b (int x) {
8 return -x -1; /* ~x */
11 /* { dg-final { scan-tree-dump "~x_..D.;" "optimized" } } */
12 /* { dg-final { scan-tree-dump "-x_..D.;" "optimized" } } */
13 /* { dg-final { cleanup-tree-dump "optimized" } } */