]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Test empty literals in C test
authorDaiki Ueno <ueno@gnu.org>
Sun, 13 Jul 2014 20:36:44 +0000 (05:36 +0900)
committerDaiki Ueno <ueno@gnu.org>
Sun, 13 Jul 2014 20:36:44 +0000 (05:36 +0900)
* xgettext-c-2: Test empty literals that do not affect the
following lines.

gettext-tools/tests/ChangeLog
gettext-tools/tests/xgettext-c-2

index d78b278802a8a5b3862b00c6c94f6a34d76b2f0c..86ee15d8acacc13055243b4af26736565b036d6d 100644 (file)
@@ -1,3 +1,9 @@
+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
index c4eb8555f9946acb9cc47d0ef8e77f19d8124c1a..550de6c5921123900814f3b9c0e7f9ae49f5900e 100755 (executable)
@@ -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}