repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
optimize2.C
blob
58b3b127f5a13d6b82cd6e2621e84497deecffe7
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
}