mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-08-17 07:28:57 +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");
|
|
}
|