[opengtl-commits] [189] ++compilation

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 189
Author:   cyrille
Date:     2008-06-14 00:13:26 +0200 (Sat, 14 Jun 2008)

Log Message:
-----------
++compilation
add the file corresponding to  copystruct test

Modified Paths:
--------------
    trunk/OpenGTL/OpenCTL/OpenCTL/compiler/ParserNG.cpp

Added Paths:
-----------
    trunk/OpenGTL/OpenCTL/tests/complextypes/copystruct.ctl


Modified: trunk/OpenGTL/OpenCTL/OpenCTL/compiler/ParserNG.cpp
===================================================================
--- trunk/OpenGTL/OpenCTL/OpenCTL/compiler/ParserNG.cpp	2008-06-13 19:38:35 UTC (rev 188)
+++ trunk/OpenGTL/OpenCTL/OpenCTL/compiler/ParserNG.cpp	2008-06-13 22:13:26 UTC (rev 189)
@@ -23,7 +23,6 @@
 #include <llvm/DerivedTypes.h>
 #include <llvm/Type.h>
 
-#include <GTLCore/ArrayStructs_p.h>
 #include <GTLCore/CodeGenerator_p.h>
 #include <GTLCore/ErrorMessage.h>
 #include <GTLCore/ExpressionResult_p.h>

Added: trunk/OpenGTL/OpenCTL/tests/complextypes/copystruct.ctl
===================================================================
--- trunk/OpenGTL/OpenCTL/tests/complextypes/copystruct.ctl	                        (rev 0)
+++ trunk/OpenGTL/OpenCTL/tests/complextypes/copystruct.ctl	2008-06-13 22:13:26 UTC (rev 189)
@@ -0,0 +1,20 @@
+
+struct MyStruct {
+  int i;
+  bool b;
+  float f;
+};
+
+int main()
+{
+  MyStruct m;
+  m.i = 10;
+  m.b = false;
+  m.f = 3.0;
+  MyStruct m2;
+  m2 = m;
+  assert( m2.i == 10);
+  assert( m2.b == false );
+  assert( m2.f == 3.0 );
+  return 0;
+}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/