diff options
author | Daiki Ueno <ueno@gnu.org> | 2014-07-14 05:36:44 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2014-07-14 05:36:44 +0900 |
commit | 35de76720ac949fc3be404a52291d33fea2d96fe (patch) | |
tree | 81320ff347b26bbbee4375f0bdf04791007061be /gettext-tools/tests/xgettext-c-2 | |
parent | 7b2d8d617e7af5e351af95a9d3933d5385a16776 (diff) | |
download | external_gettext-35de76720ac949fc3be404a52291d33fea2d96fe.zip external_gettext-35de76720ac949fc3be404a52291d33fea2d96fe.tar.gz external_gettext-35de76720ac949fc3be404a52291d33fea2d96fe.tar.bz2 |
tests: Test empty literals in C test
* xgettext-c-2: Test empty literals that do not affect the
following lines.
Diffstat (limited to 'gettext-tools/tests/xgettext-c-2')
-rwxr-xr-x | gettext-tools/tests/xgettext-c-2 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gettext-tools/tests/xgettext-c-2 b/gettext-tools/tests/xgettext-c-2 index c4eb855..550de6c 100755 --- a/gettext-tools/tests/xgettext-c-2 +++ b/gettext-tools/tests/xgettext-c-2 @@ -1,7 +1,7 @@ #! /bin/sh . "${srcdir=.}/init.sh"; path_prepend_ . ../src -# Test C support: comments meant for xgettext, and whitespace. +# Test C support: comments meant for xgettext, whitespace, and literals. cat <<EOF > xg-c-2.in.c This is a test of the xgettext functionality. @@ -15,6 +15,10 @@ _ ( "hello" ) +static int c = ''; +_("after character") +static char *s = ""; +_("after string") EOF : ${XGETTEXT=xgettext} @@ -31,6 +35,12 @@ msgstr "" msgid "hello" msgstr "" + +msgid "after character" +msgstr "" + +msgid "after string" +msgstr "" EOF : ${DIFF=diff} |