aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr100509.c
blob: 38e7002ae026d469c1e62f2afa10746c7e66ecc1 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O" } */
/* { dg-require-alias "" } */

struct X {
  int a;
};
const int a = 0;
static struct X A __attribute__((alias("a")));
void foo() { struct X b = A; }