3 # Test recognition of ISO C 99 <inttypes.h> format string directives.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-c-8.c"
12 printf (_("File size is: %" PRId64), size);
13 printf (_("File age is %10" PRIdMAX " microseconds"), age);
14 printf (_(PRIXFAST16 " errors"), nerrs);
15 printf (_(PRIXFAT16 " mistakes"), nerrs);
19 tmpfiles
="$tmpfiles xg-c-8.po"
20 : ${XGETTEXT=xgettext}
21 ${XGETTEXT} --omit-header --no-location -k_ -o xg-c-8.po xg-c-8.c
22 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
24 tmpfiles
="$tmpfiles xg-c-8.ok"
27 msgid "File size is: %<PRId64>"
31 msgid "File age is %10<PRIdMAX> microseconds"
35 msgid "<PRIXFAST16> errors"
44 ${DIFF} xg-c-8.ok xg-c-8.po