1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 static struct s {
5 int x;
6 char y;
7 } s;
8
set(char c)9 void set (char c)
10 {
11 s.y = c;
12 }
13
14
get(void)15 char get (void)
16 {
17 return s.y;
18 }
19
20 /* { dg-final { scan-assembler-times "%gprel\\(s\\+4\\)\\(gp\\)" 2 } } */
21