2017-10-21 23:40:19 +00:00
|
|
|
/* Special Conformance Test 3.6.0.3: Test explicit line numbering (#line) */
|
|
|
|
/* with filenames */
|
|
|
|
|
2022-10-17 22:50:42 +00:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
int printf(const char *, ...);
|
|
|
|
|
2017-10-21 23:40:19 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#define FileName(x) x
|
|
|
|
#define LINE_NUM 10
|
|
|
|
#line LINE_NUM FileName ("onemorefile")
|
|
|
|
|
2022-10-17 22:50:42 +00:00
|
|
|
int main (void)
|
2017-10-21 23:40:19 +00:00
|
|
|
{
|
|
|
|
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");
|
|
|
|
}
|