summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-02-11 11:09:27 +0000
committerBruno Haible <bruno@clisp.org>2003-02-11 11:09:27 +0000
commit810fef43aebd9cd1d58d9a6a412c49835d3e8471 (patch)
treee00cbf3d2754cfbdfa69af299f91b21fe7e8e326 /tests
parent6202aaadb1a2904f456c2ee55623bf4a1a951ad7 (diff)
downloadgperf-810fef43aebd9cd1d58d9a6a412c49835d3e8471.tar.gz
When the option -k is not given, the default key positions are now computed
depending on the set of keywords.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.in2
-rw-r--r--tests/gpc.exp1
-rw-r--r--tests/test-4.exp2
3 files changed, 3 insertions, 2 deletions
diff --git a/tests/Makefile.in b/tests/Makefile.in
index e78fafc..deab114 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -135,7 +135,7 @@ check-test:
diff $(srcdir)/java.exp java.out
$(GPERF) -n -k1-8 -l < $(srcdir)/modula2.gperf > modula2.out
diff $(srcdir)/modula2.exp modula2.out
- $(GPERF) -D -p -t < $(srcdir)/c-parse.gperf > test-4.out
+ $(GPERF) -D -p -t -k1,'$$' < $(srcdir)/c-parse.gperf > test-4.out
diff $(srcdir)/test-4.exp test-4.out
$(GPERF) -g -o -j1 -t -p -N is_reserved_word < $(srcdir)/gpc.gperf > gpc.out
diff $(srcdir)/gpc.exp gpc.out
diff --git a/tests/gpc.exp b/tests/gpc.exp
index 70fd312..4f9723d 100644
--- a/tests/gpc.exp
+++ b/tests/gpc.exp
@@ -1,5 +1,6 @@
/* C code produced by gperf version 2.7.2 */
/* Command-line: ../src/gperf -g -o -j1 -t -p -N is_reserved_word */
+/* Computed positions: -k'1,$' */
/* ISO Pascal 7185 reserved words.
*
diff --git a/tests/test-4.exp b/tests/test-4.exp
index 9e218cc..03bb87e 100644
--- a/tests/test-4.exp
+++ b/tests/test-4.exp
@@ -1,5 +1,5 @@
/* C code produced by gperf version 2.7.2 */
-/* Command-line: ../src/gperf -D -p -t */
+/* Command-line: ../src/gperf -D -p -t -k'1,$' */
/* Command-line: gperf -L KR-C -F ', 0, 0' -p -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ c-parse.gperf */
struct resword { const char *name; short token; enum rid rid; };