summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr31490-3.c
blob: e7ccc677de14a1bd28c34d5201d1dedecb3709be (plain)
1
2
3
4
5
6
7
/* PR middle-end/31490 */
/* { dg-do compile } */
/* { dg-options "-fpic" { target fpic } } */
/* { dg-require-named-sections "" } */

const char *const x __attribute__((section("foo"))) = (const char *) 0;
const char *const g __attribute__((section("foo"))) = "bar";