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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
debug
/
pr108967.C
blob
b50dadc592560c184f99d22eed7070e2afb00ebe
1
// PR debug/108967
2
// { dg-do compile }
3
4
struct F { unsigned short r[8]; };
5
extern void foo (F);
6
7
static inline F
8
bar (F a, F b)
9
{
10
for (int i = 0; i < 8; ++i)
11
a.r[i] = a.r[i] + b.r[i] < (unsigned short) -1 ? a.r[i] + b.r[i] : (unsigned short) -1;
12
return a;
13
}
14
15
static inline void
16
baz (F v)
17
{
18
foo (v);
19
}
20
21
void
22
qux (F a, F b)
23
{
24
F c = bar (a, b);
25
baz (c);
26
}
27
28
static inline F
29
corge (F a, F b)
30
{
31
for (int i = 0; i < 8; ++i)
32
a.r[i] = a.r[i] - b.r[i] > 0 ? a.r[i] - b.r[i] : 0;
33
return a;
34
}
35
36
void
37
garply (F a, F b)
38
{
39
F c = corge (a, b);
40
baz (c);
41
}