ORCA-C/Tests/Conformance/c95digraph.c
Stephen Heumann 6ead1d4caf Add a set of new tests for C95/C99/C11 features that we now support.
These are currently only run by the new DOIT3 test-running script.

Note that these tests are designed to be applicable to most implementations of C95/C99/C11, not just ORCA/C. They do make certain assumptions not guaranteed by the standards (e.g. power of 2 types and some properties of IEEE-like FP), but in general those assumptions should be true for most 'normal' systems.
2021-08-22 17:32:56 -05:00

21 lines
342 B
C

/*
* Test support for digraphs (C95).
*/
%:include <stdio.h>
#define merge(a,b) a%:%:b
int main(void) <%
merge(in,t) a<:1] = {123%>;
if (a[0:> != 123)
goto Fail;
printf ("Passed Conformance Test c95digraph\n");
return 0;
Fail:
printf ("Failed Conformance Test c95digraph\n");
}