[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: use AT_FULL_COMPILE where possible
From: |
Theophile Ranquet |
Subject: |
[PATCH] tests: use AT_FULL_COMPILE where possible |
Date: |
Thu, 31 Jan 2013 22:44:45 +0100 |
* tests/c++.at (C++ Variant-based Symbol, Variants): Here. Rename the
generated input files to use .y instead of .yy, as a requirement for using
AT_FULL_COMPILE instead of a manual BISON_CHECK and BISON_COMPILE_CXX.
---
tests/c++.at | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/tests/c++.at b/tests/c++.at
index d36e322..9a95322 100644
--- a/tests/c++.at
+++ b/tests/c++.at
@@ -28,7 +28,7 @@ AT_KEYWORDS([variant])
AT_BISON_OPTION_PUSHDEFS([%skeleton "lalr1.cc" %debug $1])
# Store strings and integers in a list of strings.
-AT_DATA_GRAMMAR([list.yy],
+AT_DATA_GRAMMAR([list.y],
[[%skeleton "lalr1.cc"
%define api.value.type variant
%define parse.assert
@@ -92,8 +92,7 @@ int main()
}
]])
-AT_BISON_CHECK([-o list.cc list.yy])
-AT_COMPILE_CXX([list], [list.cc])
+AT_FULL_COMPILE([list])
AT_PARSER_CHECK([./list], 0, [],
[12
123
@@ -115,7 +114,7 @@ m4_pushdef([AT_TEST],
AT_BISON_OPTION_PUSHDEFS([%skeleton "lalr1.cc" %debug $1])
# Store strings and integers in a list of strings.
-AT_DATA_GRAMMAR([list.yy],
+AT_DATA_GRAMMAR([list.y],
[[%debug
%skeleton "lalr1.cc"
%define api.value.type variant
@@ -250,8 +249,7 @@ namespace yy
]AT_MAIN_DEFINE[
]])
-AT_BISON_CHECK([-o list.cc list.yy])
-AT_COMPILE_CXX([list], [list.cc])
+AT_FULL_COMPILE([list])
AT_PARSER_CHECK([./list], 0,
[(0, 1, 2, 4)
])
--
1.8.1.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] tests: use AT_FULL_COMPILE where possible,
Theophile Ranquet <=