Add a readonly definition to the module, to make sure the inclusion guards on it...
authorPhil Miller <mille121@illinois.edu>
Fri, 30 Mar 2012 21:10:02 +0000 (16:10 -0500)
committerPhil Miller <mille121@illinois.edu>
Thu, 5 Apr 2012 21:17:54 +0000 (16:17 -0500)
tests/charm++/method_templates/mylib.C
tests/charm++/method_templates/mylib.ci
tests/charm++/method_templates/mylib.h

index 64ebff7050323c0d30a63e6f481bdd6154ef203d..06f318a67b7da6fa368aacb87754d24702585e75 100644 (file)
@@ -1,2 +1,4 @@
 #include "mylib.h"
 #include "mylib.def.h"
+
+int moduleRo;
index 8f391244a0796fa81834496bcaa0e27695fd46aa..0d83841f824d4743915278abb4132d6801ec2174 100644 (file)
@@ -1,4 +1,5 @@
 module mylib {
+  readonly int moduleRo;
     array [1D] libArray {
         entry libArray();
         template <typename T>
index bf3ab24391cc3a5dfd6f0f83409adbd52afff95a..bfce78f189c70f4c2b554bd6460d2ac1abf412d7 100644 (file)
@@ -4,6 +4,8 @@
 #include "mylib.decl.h"
 #include <sstream>
 
+extern int moduleRo;
+
 class libArray: public CBase_libArray
 {
     public: