[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
regression.at
From: |
marc-alexandre autret |
Subject: |
regression.at |
Date: |
Tue, 18 Sep 2001 16:03:26 +0000 (GMT) |
Hi,
--- bison/tests/regression.at Tue Sep 18 15:36:54 2001
+++ tests-bison/tests/regression.at Tue Sep 18 15:59:01 2001
@@ -64,3 +64,25 @@
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; grep '//\*' union-comment.tab.c], [1], [])
+
+AT_CLEANUP([union-comment.*])
I have no experience in autotest, so I am not sure if
my test is written in the right way...
--
Autret Marc (address@hidden)
Eleve Ingenieur en Informatique.
- regression.at,
marc-alexandre autret <=