Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/optimize2.C

raw
1 // { dg-do run }
2 // { dg-options "-w" }
3 // Used to crash on the alpha with optimization.
4
5 extern "C" void abort (void);
6
7 struct Fix {
8 unsigned short l;
9 };
10
11 static inline void f (int len)
12 {
13 if (len > 65535)
14 abort ();
15 }
16
17 struct Fix a = { 33 };
18
19 main()
20 {
21 f (a.l);
22 }