Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
6670cf1f
Commit
6670cf1f
authored
Mar 03, 2009
by
Roberto Raggi
Browse files
Compile.
parent
7765a3d3
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp
View file @
6670cf1f
...
...
@@ -18,8 +18,9 @@ void tst_Preprocessor::pp_with_no_client()
Client
*
client
=
0
;
// no client.
Environment
env
;
Preprocessor
preprocess
(
client
,
env
);
QByteArray
preprocessed
=
preprocess
(
"#define foo(a,b) a + b
\n
foo(1, 2)
\n
"
);
Preprocessor
preprocess
(
client
,
&
env
);
QByteArray
preprocessed
=
preprocess
(
"<stdin>"
,
"#define foo(a,b) a + b
\n
foo(1, 2)
\n
"
);
QByteArray
expected
=
"1 + 2"
;
QCOMPARE
(
preprocessed
.
trimmed
(),
expected
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment