diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/pr31490.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/pr31490.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/pr31490.c b/gcc-4.9/gcc/testsuite/gcc.dg/pr31490.c new file mode 100644 index 000000000..37731b3a3 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/pr31490.c @@ -0,0 +1,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; |