view gcc/testsuite/gcc.dg/pr31490.c @ 138:fc828634a951

merge
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 08 Nov 2018 14:17:14 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* 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;