summaryrefslogtreecommitdiff
path: root/testsuite/bc_misc2.bc
blob: f5a6a6b138a9e25384fb44c41589d998b1f51ffd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
define x() {
"x"
return ( 1 )
}
define y() {
"y"
return (2)
}
define z() {
"z"
return (3)
}

if ( x() == y() ) {1}
1
if ( x() <= y() ) {2}
if ( y() >= x() ) {3}
if ( x() != y() ) {4}
if ( x() < y() ) {5}
if ( y() > x() ) {6}

if ( x() == z() ) {11}
11
if ( x() <= z() ) {12}
if ( z() >= x() ) {13}
if ( x() != z() ) {14}
if ( x() < z() ) {15}
if ( z() > x() ) {16}

x = -10
while (x <= 0) {
	x
	if (x == -5) break;
	x += 1
}

define u() {
	auto a[];
	return a[0]
}

u()

if (x == -4) x
else x - 4