2017-10-21 23:40:19 +00:00
|
|
|
/* Conformance Test 3.3.4.1: Verification of ANSI C and ORCA/C predefined */
|
|
|
|
/* macros */
|
|
|
|
|
2022-10-17 22:50:42 +00:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
int printf(const char *, ...);
|
|
|
|
|
|
|
|
int main (void)
|
2017-10-21 23:40:19 +00:00
|
|
|
{
|
|
|
|
int i, j;
|
|
|
|
float x, y;
|
|
|
|
char str[80], fname[20] = "C3.3.4.1.CC";
|
|
|
|
|
|
|
|
#line 10
|
2018-09-09 23:11:47 +00:00
|
|
|
if (__LINE__ != 10)
|
2017-10-21 23:40:19 +00:00
|
|
|
goto Fail;
|
|
|
|
|
|
|
|
strcpy(str, __FILE__);
|
|
|
|
i = strlen(str)-strlen(fname);
|
|
|
|
if ((strcmp (&str[i], fname)) != 0)
|
|
|
|
goto Fail;
|
|
|
|
|
|
|
|
if (__STDC__ == 0)
|
|
|
|
goto Fail;
|
|
|
|
|
|
|
|
if (__ORCAC__ != 1)
|
|
|
|
goto Fail;
|
|
|
|
|
|
|
|
printf ("Passed Conformance Test 3.3.4.1\n");
|
2022-10-17 22:50:42 +00:00
|
|
|
return 0;
|
2017-10-21 23:40:19 +00:00
|
|
|
|
|
|
|
Fail:
|
|
|
|
printf ("Failed Conformance Test 3.3.4.1\n");
|
|
|
|
}
|