bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: [bison-1_29-branch] regression-at.patch


From: marc-alexandre autret
Subject: FYI: [bison-1_29-branch] regression-at.patch
Date: Tue, 18 Sep 2001 17:15:43 +0000 (GMT)

Tests for bug (comment in %union).


Index: ChangeLog
===================================================================
RCS file: /cvsroot/bison/bison/ChangeLog,v
retrieving revision 1.173.2.37
diff -u -r1.173.2.37 ChangeLog
--- ChangeLog   2001/09/18 11:37:11     1.173.2.37
+++ ChangeLog   2001/09/18 15:11:22
@@ -1,5 +1,9 @@
 2001-09-18  Marc Autret  <address@hidden>
 
+       * tests/regression.at: New test (comment in %union).
+
+2001-09-18  Marc Autret  <address@hidden>
+
        * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
        do that.
        Reported by Keith Browne.
Index: tests/regression.at
===================================================================
RCS file: /cvsroot/bison/bison/tests/regression.at,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 regression.at
--- tests/regression.at 2001/08/30 15:36:37     1.1.2.1
+++ tests/regression.at 2001/09/18 15:11:23
@@ -64,3 +64,26 @@
 AT_CHECK([bison --defines union.y])
 
 AT_CLEANUP([union.*])
+
+
+## --------------------------------------- ##
+## Duplicate '/' in C comments in %union   ##
+## --------------------------------------- ##
+
+
+AT_SETUP([%union and C comments])
+
+AT_DATA([union-comment.y],
+[%union        
+{
+  /* The int.  */      int   integer;
+  /* The string.  */   char *string ;
+}
+%%
+exp: {};
+])
+
+AT_CHECK([bison union-comment.y])
+AT_CHECK([fgrep '//*' union-comment.tab.c], [1], [])
+
+AT_CLEANUP([union-comment.*])


-- 
Autret Marc (address@hidden)
Eleve Ingenieur en Informatique.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]