ref: ccf46f44ef117d53e4453ddd7bb967c05f7490a3
dir: /cc1/tests/test005.c/
/*
name: TEST005
description: Test unary integer operations
error:
output:
G2 F "main
{
\
A3 I "x
A3 #I3 :I
A3 A3 #I0 =I :I
A3 A3 #I0 =I :I
A3 A3 ~I :I
A3 A3 _I :I
y L4 A3 #I2 =I
h #I1
L4
h #I0
}
*/
int
main()
{
int x;
x = 3;
x = !x; // 0
x = !x; // 1
x = ~x; // -1
x = -x; // 2
if(x != 2)
return 1;
return 0;
}