]> www.ginac.de Git - ginac.git/blobdiff - cint/exam_misc.cpp
building in separate directory didn't work
[ginac.git] / cint / exam_misc.cpp
index b499364e98583834a708599015d2a26a4732b87c..611ecac7e2db9095c3e488aa52c387f643686905 100755 (executable)
@@ -12,19 +12,17 @@ unsigned result = 0;
                ++result;
 }
 /*
- * Denny Fliegner's test using vector<symbol> is rather hard on Cint.  If
- * it fails due to missing <sstream> it's due to your compiler not being
- * fully ANSI-compliant.  Don't worry.
+ * Denny Fliegner's test using vector<symbol> tests Cint's memory management.
  */
 #include <sstream>
 {
        vector<symbol> a;
        ex bigsum = 0;
        for (int i=0; i<42; ++i) {
-        ostringstream buf;
-        buf << "a" << i << ends;
-        a.push_back(symbol(buf.str()));
-        bigsum += a[i];
+               ostringstream buf;
+               buf << "a" << i << ends;
+               a.push_back(symbol(buf.str()));
+               bigsum += a[i];
        }
        ex sbtrct = -bigsum + a[0] + a[1];
        if (pow(bigsum,2).expand().subs(a[0]==sbtrct).expand() != pow(a[1],2))