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
This commit is contained in:
Steve Ellcey 2010-11-17 22:55:01 +00:00 committed by Steve Ellcey
parent 86f27ba678
commit d1b2ae0d9c
2 changed files with 11 additions and 0 deletions

View File

@ -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 ...

View File

@ -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;