3 # Test C support: recognition of #line.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-c-3.in.c"
9 cat <<EOF > xg-c-3.in.c
11 main(){printf(gettext("Hello, World!\n"));}
16 tmpfiles
="$tmpfiles xg-c-3.po"
17 : ${XGETTEXT=xgettext}
18 ${XGETTEXT} --omit-header --add-location xg-c-3.
in.c
-d xg-c-3
19 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
21 tmpfiles
="$tmpfiles xg-c-3.ok"
25 msgid "Hello, World!\n"
34 ${DIFF} xg-c-3.ok xg-c-3.po