From 99ab5c68eab0b90eaaf748e8677983446a0e98c3 Mon Sep 17 00:00:00 2001 From: tomoaki Date: Wed, 13 Jun 2012 08:00:00 +0900 Subject: [PATCH] lex2_test.cpp --- roast/test/linux_test2/lex2_test.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/roast/test/linux_test2/lex2_test.cpp b/roast/test/linux_test2/lex2_test.cpp index 40b6f5b2..8e7eef37 100644 --- a/roast/test/linux_test2/lex2_test.cpp +++ b/roast/test/linux_test2/lex2_test.cpp @@ -5,16 +5,26 @@ using namespace roast; using namespace roast::lexical; +struct A +{ +void hoge(){} +}; + int main() { + A a; + a.hoge(); try{ lexical::println(fixed_char<'U'>()); - lexical::println(fixed_string("aaca",3)); + lexical::println(seq, fixed_char<'T'> >()); + lexical::println(fixed_string("aaca",3)); fixed_char<'U'> fixed_u; fixed_string fixed_string_test("aaca",3); + seq, fixed_char<'T'> > seq_test; printf("%d\n", lexical::parse(fixed_u, "Z") ); printf("%d\n", lexical::parse(fixed_string_test, "aacaZ") ); + printf("%d\n", lexical::parse(seq_test, "Ud") ); } catch(const ::std::string &s) { -- 2.11.0