projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Adjust test case for lexical block pruning. Follow-on to r104842 and Radar 7424645.
[oota-llvm.git]
/
test
/
FrontendC
/
2002-09-18-UnionProblem.c
1
// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
2
3
4
struct DWstruct {
5
char high, low;
6
};
7
8
typedef union {
9
struct DWstruct s;
10
short ll;
11
} DWunion;
12
13
short __udivmodhi4 (char n1, char bm) {
14
DWunion rr;
15
16
if (bm == 0)
17
{
18
rr.s.high = n1;
19
}
20
else
21
{
22
rr.s.high = bm;
23
}
24
25
return rr.ll;
26
}