bison-patches
[Top][All Lists]
Advanced

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

[PATCH 5/6] tests: please C90 compilers


From: Akim Demaille
Subject: [PATCH 5/6] tests: please C90 compilers
Date: Mon, 28 Jan 2013 17:48:18 +0100

* tests/actions.at, tests/conflicts.at: Use /* ... */ comments.
Let "main" return a value.
---
 tests/actions.at   | 2 +-
 tests/conflicts.at | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/actions.at b/tests/actions.at
index 302c1bb..9473f6e 100644
--- a/tests/actions.at
+++ b/tests/actions.at
@@ -1011,7 +1011,7 @@ AT_DATA_GRAMMAR([[input]]$1[[.y]],
 start: { $$ = 'S'; } ;
 
 %%
-#include <stdlib.h> // abort
+#include <stdlib.h> /* abort */
 static int
 yylex (void)
 {
diff --git a/tests/conflicts.at b/tests/conflicts.at
index 5325b69..7828cdf 100644
--- a/tests/conflicts.at
+++ b/tests/conflicts.at
@@ -74,6 +74,7 @@ int main (void)
   assert (T < U);
   assert (U < V);
   assert (V < W);
+  return 0;
 }
 ]])
 
-- 
1.8.1.1




reply via email to

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