mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 23:29:27 +00:00
1 line
569 B
C++
Executable File
1 line
569 B
C++
Executable File
/* Special Conformance Test 3.6.0.3: Test explicit line numbering (#line) */
|
|
/* with filenames */
|
|
|
|
#include <stdio.h>
|
|
#define FileName(x) x
|
|
#define LINE_NUM 10
|
|
#line LINE_NUM FileName ("onemorefile")
|
|
|
|
main ()
|
|
{
|
|
if (strcmp (__FILE__, "onemorefile"))
|
|
{
|
|
printf ("Failed Special Conformance Test 3.6.0.3\n");
|
|
printf ("Macro substitution in LINE fails\n");
|
|
printf ("__FILE__ = %s\n", __FILE__);
|
|
}
|
|
|
|
else
|
|
printf ("Passed Special Conformance Test 3.6.0.3\n");
|
|
}
|