gcc/testsuite/gcc.dg/Wpointer-sign.c
raw| 1 | /* This is from PR c/25892. The SC promised RMS that -Wpointer-sign |
| 2 | would be off by default in GCC 4.1 to avoid inconvenient warnings |
| 3 | while compiling GNU Emacs. It should be enabled with -Wall and/or |
| 4 | -pedantic, though. Make sure it's off by default in this test (so |
| 5 | use dg-options "" to avoid passing -pedantic-errors). */ |
| 6 | |
| 7 | /* { dg-options "" } */ |
| 8 | |
| 9 | void foo(unsigned long* ulp); |
| 10 | |
| 11 | void bar(long* lp) { |
| 12 | foo(lp); |
| 13 | } |