mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 07:30:54 +00:00
21 lines
384 B
C++
21 lines
384 B
C++
/* Conformance Test 3.3.9.1: Verification of token merging in macro */
|
|
/* expansions */
|
|
|
|
#define INCR(j,k) j##k
|
|
|
|
main ()
|
|
{
|
|
int x;
|
|
|
|
x = 3;
|
|
x = INCR (+, +) x;
|
|
if (x != 4)
|
|
goto Fail;
|
|
|
|
printf ("Passed Conformance Test 3.3.9.1\n");
|
|
return;
|
|
|
|
Fail:
|
|
printf ("Failed Conformance Test 3.3.9.1\n");
|
|
}
|