From a2eb2e08cf114d314915df9916d34a33e4e0c68b Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 10 Sep 2004 11:46:22 +0000 Subject: [PATCH] Don't generate empty source file -- SunCC warns in that case. [SVN r25000] --- v2/test/generators-test/lex.jam | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/v2/test/generators-test/lex.jam b/v2/test/generators-test/lex.jam index 81ae22fd3..b6bf5cfbb 100644 --- a/v2/test/generators-test/lex.jam +++ b/v2/test/generators-test/lex.jam @@ -7,12 +7,20 @@ import type ; import generators ; import feature ; import property ; +import print ; type.register LEX : l ; generators.register-standard lex.lex : LEX : C ; +rule lex ( targets * : sources * : properties * ) +{ + print.output $(<) ; + # Need to supress SunCC's warning about empty source + # file. + print.text "void foo() {}" ; +} + actions lex { - touch $(<) } \ No newline at end of file