Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / pr31490.c
blob1c682db5fb8a6c8212db78db3b4d6e8fe7df355e
1 /* PR middle-end/31490 */
2 /* { dg-do compile } */
3 /* { dg-require-named-sections "" } */
4 /* { dg-require-effective-target ptr32plus } */
6 int cpu (void *attr) {}
7 const unsigned long x __attribute__((section("foo"))) = (unsigned long)&cpu;
8 const unsigned long g __attribute__((section("foo"))) = 0;