1 /* Test the tester; previously gcc.misc-tests/dg-1.c. */ 2 /* { dg-prms-id 42 } */ 3 /* { dg-do compile } */ 4 main()5main () { return 0; } 6 7 /* { dg-final { if ![file exists dg-do-compile-exp-P.s] { fail "dg-do-compile-exp-P.c (compile)"; return; } } } */ 8 9 /* { dg-final { set tmp [grep dg-do-compile-exp-P.s main line] } } */ 10 /* { dg-final { if ![string match "" $tmp] \{ } } */ 11 /* { dg-final { pass "dg-do-compile-exp-P.c (main function present)" } } */ 12 /* { dg-final { \} else \{ } } */ 13 /* { dg-final { fail "dg-do-compile-exp-P.c (main function not present)" } } */ 14 /* { dg-final { \} } } */ 15