aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/testsuite/gcc.dg/pr31490.c
blob: 966a1b4a50f07e5826552eac7edce1f286cf2398 (plain)
1
2
3
4
5
6
/* PR middle-end/31490 */
/* { dg-do compile } */
/* { dg-require-named-sections "" } */
int cpu (void *attr) {}
const unsigned long x __attribute__((section("foo"))) =  (unsigned long)&cpu;
const unsigned long g __attribute__((section("foo"))) = 0;