]> www.ginac.de Git - ginac.git/blobdiff - check/parser_memleak.cpp
lexer: when switching to another output stream, clean last read character.
[ginac.git] / check / parser_memleak.cpp
index ebc6ed9f59a750584aa7de0e88b7627738bfcdc8..f347ce9aca10c471502de492e0a5478d1c65cccf 100644 (file)
@@ -18,7 +18,7 @@ int main(int argc, char** argv) {
        const symbol x("x"), y("y");
        const lst syms(x, y);
        // parser-generated symbol => memory leak.
-       static const char* str[] = { "x2+2*x*y + cos(x)", "Li2(x/y) + log(y/x)" };
+       static const char* str[] = { "x^2+2*x*y + cos(x)", "Li2(x/y) + log(y/x)" };
        
        // depends on the amount of the available VM, compiler options, etc.
        const unsigned N_max = 500000;