[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
- [PATCH 0/6] {master} tests: various improvements and fixes, Akim Demaille, 2013/01/28
- [PATCH 3/6] news: minor improvements, Akim Demaille, 2013/01/28
- [PATCH 6/6] maint: fix syntax-check issues, Akim Demaille, 2013/01/28
- [PATCH 4/6] maint: update todo, Akim Demaille, 2013/01/28
- [PATCH 2/6] tests: please clang and use ".cc", not ".c", for C++ input, Akim Demaille, 2013/01/28
- [PATCH 5/6] tests: please C90 compilers,
Akim Demaille <=
- [PATCH 1/6] tests: formatting changes, Akim Demaille, 2013/01/28