File: test008

package info (click to toggle)
pmccabe 2.2-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 452 kB
  • ctags: 447
  • sloc: ansic: 2,606; cpp: 1,080; sh: 343; makefile: 92
file content (16 lines) | stat: -rw-r--r-- 129 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* XOR test */
fn1()
{
    if ((a > 1) && (b > 2))
    {
	x(1);
    }
}

fn2()
{
    if ((a > 1) ^ (b > 2))
    {
	x(1);
    }
}