diff options
| -rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.dg/pr31490.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cb564c1..6d2303a 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 0000000..966a1b4 --- /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; |
