* xgettext-c-2: Test empty literals that do not affect the
following lines.
+2014-07-14 Daiki Ueno <ueno@gnu.org>
+
+ tests: Test empty literals in C test
+ * xgettext-c-2: Test empty literals that do not affect the
+ following lines.
+
2014-06-16 Daiki Ueno <ueno@gnu.org>
tests: Test "make dist" in autopoint test
#! /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.
(
"hello"
)
+static int c = '';
+_("after character")
+static char *s = "";
+_("after string")
EOF
: ${XGETTEXT=xgettext}
msgid "hello"
msgstr ""
+
+msgid "after character"
+msgstr ""
+
+msgid "after string"
+msgstr ""
EOF
: ${DIFF=diff}