ORCA-C/Tests/Conformance/C2.1.1.1.CC

24 lines
419 B
Plaintext
Raw Normal View History

/* Conformance Test 2.1.1.1: Verification of encoding for null */
#include <string.h>
int printf(const char *, ...);
int main (void)
{
char string [4];
strcpy (string, "");
if (string [0] != 0)
goto Fail;
strcpy (string, "abc");
if (string [3] != 0)
goto Fail;
printf ("Passed Conformance Test 2.1.1.1\n");
return 0;
Fail:
printf ("Failed Conformance Test 2.1.1.1\n");
}