3 # Test C support: comments.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-c-5.in.cc"
9 cat <<EOF > xg-c-5.in.cc
10 main(){printf(gettext/*puke*/(/*barf*/"Hello, " "World!" "\n")); }
13 tmpfiles
="$tmpfiles xg-c-5.po"
14 : ${XGETTEXT=xgettext}
15 ${XGETTEXT} --omit-header --no-location --add-comments xg-c-5.
in.cc
-d xg-c-5
16 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
18 tmpfiles
="$tmpfiles xg-c-5.ok"
23 msgid "Hello, World!\n"
28 ${DIFF} xg-c-5.ok xg-c-5.po