Debian Codegraph @

gcc/testsuite/gcc.target/avr/torture/pr120423-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-ffixed-18 -ffixed-20 -ffixed-22" } */
3
4 struct data
5 {
6 int a;
7 int b;
8 long c;
9 };
10
11 unsigned char val;
12 unsigned val2;
13
14 void func1 (struct data *d)
15 {
16 d->a = 0;
17 d->b = 0x100 * val - 1;
18 }
19
20 void func2 (struct data *d)
21 {
22 d->a = 0;
23 d->c = 0x10000 * val2 - 1;
24 }
25
26 void func3 (struct data *d)
27 {
28 d->a = 0;
29 d->c = 0x1000000 * val - 1;
30 }