URL:
https://svn.lrde.epita.fr/svn/scool/branches/scool-ng
ChangeLog:
2009-02-12 Vincent Ordy <ordy(a)lrde.epita.fr>
Add ref files for fixed test.
* tests/examples/c++_ast/embeded_c++.aterm: New.
* tests/examples/c++_build/embeded_c++.g++: New.
* tests/examples/c++_src/embeded_c++.cc: New.
* tests/examples/scool_ast/embeded_c++.aterm: New.
---
c++_ast/embeded_c++.aterm | 1 +
c++_src/embeded_c++.cc | 6 ++++++
scool_ast/embeded_c++.aterm | 1 +
3 files changed, 8 insertions(+)
Index: branches/scool-ng/tests/examples/c++_ast/embeded_c++.aterm
===================================================================
--- branches/scool-ng/tests/examples/c++_ast/embeded_c++.aterm (revision 0)
+++ branches/scool-ng/tests/examples/c++_ast/embeded_c++.aterm (revision 137)
@@ -0,0 +1 @@
+CxxProgram([CxxProgram("#include <iostream>
"),CxxFun([],CxxType("int"),CxxId("f"),[(CxxType("int"),CxxId("arg"))],None,[CxxProgram("std::cout
<< arg << std::endl;
"),CxxExpStm(CxxKeyword("return",CxxProgram("arg + 42 ")))])])
Index: branches/scool-ng/tests/examples/c++_src/embeded_c++.cc
===================================================================
--- branches/scool-ng/tests/examples/c++_src/embeded_c++.cc (revision 0)
+++ branches/scool-ng/tests/examples/c++_src/embeded_c++.cc (revision 137)
@@ -0,0 +1,6 @@
+#include <iostream>
+int f(int arg)
+{
+ std::cout << arg << std::endl;
+ return arg + 42 ;
+}
Index: branches/scool-ng/tests/examples/scool_ast/embeded_c++.aterm
===================================================================
--- branches/scool-ng/tests/examples/scool_ast/embeded_c++.aterm (revision 0)
+++ branches/scool-ng/tests/examples/scool_ast/embeded_c++.aterm (revision 137)
@@ -0,0 +1 @@
+Program([CxxStatement(Cxx("#include <iostream>
")),FunctionDefinition(None,Identifier("f"),FunctionType(None,ArgumentsDeclaration([TypedId(Identifier("arg"),SimpleType("int"))]),SimpleType("int")),FunctionBlock([CxxStatement(Cxx("std::cout
<< arg << std::endl; ")),ReturnStatement(Cxx("arg + 42
"))]))])
Index: branches/scool-ng/tests/examples/c++_build/embeded_c++.g++
===================================================================