ORCA-C/Tests/Conformance/C2.1.2.2.CC
2017-10-21 18:40:19 -05:00

36 lines
493 B
C++

/* Conformance Test 2.1.2.2: Ensure '\' can be used to continue source lines */
main ()
{
int i;
i = 5 * \
6;
if \
(i != 30)
goto Fail;
i = 200 \
- 7;
if (\
i != 193)
goto Fail;
i = \
7 + 7;
if (i\
!= 14)
goto Fail;
i \
+= 1;
if (i !=\
15)
goto Fail;
printf ("Passed Conformance Test 2.1.2.2\n");
return;
Fail:
printf ("Failed Conformance Test 2.1.2.2\n");
}