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

__extension__ typedef __UINTPTR_TYPE__ uintptr_t;

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