3 # Test C support: comments.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-c-7.c"
13 /* This is a comment which immediately before a keyword. */
19 // although many blank lines come before the token itself.
26 /* this one also counts */ gettext ("3");
30 /* this one is also copied */ nada
33 /* I hope you do not see the following */
38 multi-line comment */ evil;
43 tmpfiles
="$tmpfiles xg-c-7.po"
44 : ${XGETTEXT=xgettext}
45 ${XGETTEXT} --omit-header --no-location -c --c++ -d xg-c-7 xg-c-7.c
46 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
48 tmpfiles
="$tmpfiles xg-c-7.ok"
50 #. This is a comment which immediately before a keyword.
57 #. although many blank lines come before the token itself.
61 #. this one also counts
68 #. this one is also copied
82 ${DIFF} xg-c-7.ok xg-c-7.po
90 nuke-trailing-whitespace-p
:nil