File: test008

package info (click to toggle)
pmccabe 2.5
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 424 kB
  • ctags: 450
  • sloc: ansic: 2,663; cpp: 1,080; sh: 345; 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);
    }
}