ORCA-C/Tests/Spec.Conform/SPC3.6.0.2.CC
2017-10-21 18:40:19 -05:00

24 lines
566 B
C++

/* Special Conformance Test 3.6.0.2: Test explicit line numbering (#line) */
/* with a filename */
#define lineNum(x) x
#pragma debug 9 /* enable range checking and trace back */
void Sub (void)
{
int a [4080]; /* ensure stack overflow into SANE's area */
}
#line lineNum(88) "noFile" /* expect trace back to report error on line */
/* 91 (call to Sub), in file noFile */
Sub2()
{
Sub();
}
main ()
{
Sub2 ();
}