Skip to content
Snippets Groups Projects
Commit 6670cf1f authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Compile.

parent 7765a3d3
No related branches found
No related tags found
No related merge requests found
...@@ -18,8 +18,9 @@ void tst_Preprocessor::pp_with_no_client() ...@@ -18,8 +18,9 @@ void tst_Preprocessor::pp_with_no_client()
Client *client = 0; // no client. Client *client = 0; // no client.
Environment env; Environment env;
Preprocessor preprocess(client, env); Preprocessor preprocess(client, &env);
QByteArray preprocessed = preprocess("#define foo(a,b) a + b\nfoo(1, 2)\n"); QByteArray preprocessed = preprocess("<stdin>",
"#define foo(a,b) a + b\nfoo(1, 2)\n");
QByteArray expected = "1 + 2"; QByteArray expected = "1 + 2";
QCOMPARE(preprocessed.trimmed(), expected); QCOMPARE(preprocessed.trimmed(), expected);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment