summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr31490.c
blob: 1c682db5fb8a6c8212db78db3b4d6e8fe7df355e (plain)
1
2
3
4
5
6
7
8
/* PR middle-end/31490 */
/* { dg-do compile } */
/* { dg-require-named-sections "" } */
/* { dg-require-effective-target ptr32plus } */

int cpu (void *attr) {}
const unsigned long x __attribute__((section("foo"))) =  (unsigned long)&cpu;
const unsigned long g __attribute__((section("foo"))) = 0;