summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/ia64/small-addr-1.c
blob: 8462186235e111e5332b5ec51c5c574671e07604 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* PR target/21632 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

struct S
{
  void *s[256];
};

struct T
{
  long t[23];
  struct S *u;
};

extern struct T __attribute__((model (small))) v;

void *
foo (void)
{
  return v.u->s[0];
}