From d1b2ae0d9c3b5df88b70b7cb19fef633e2dea852 Mon Sep 17 00:00:00 2001 From: Steve Ellcey <sje@cup.hp.com> Date: Wed, 17 Nov 2010 22:55:01 +0000 Subject: [PATCH] re PR middle-end/31490 (Compile error section type conflict) 2010-11-17 Steve Ellcey <sje@cup.hp.com> PR middle-end/31490 * gcc.dg/pr31490.c: New test. From-SVN: r166888 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/pr31490.c | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/pr31490.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cb564c1e196a..6d2303a10e5b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-11-17 Steve Ellcey <sje@cup.hp.com> + + PR middle-end/31490 + * gcc.dg/pr31490.c: New test. + 2010-11-17 Uros Bizjak <ubizjak@gmail.com> * gcc.dg/nop.h: Move from ... diff --git a/gcc/testsuite/gcc.dg/pr31490.c b/gcc/testsuite/gcc.dg/pr31490.c new file mode 100644 index 000000000000..966a1b4a50f0 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr31490.c @@ -0,0 +1,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; -- GitLab