summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr31490-2.c
blob: 2449ac468b5ce267eaf4953b2fe5f72ca783b930 (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 *const g __attribute__((section("foo"))) = (const char *) 0;