mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 23:29:27 +00:00
36 lines
493 B
C++
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");
|
|
}
|