summaryrefslogtreecommitdiff
path: root/test/example/find_div0s.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-02-17 16:53:14 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-02-17 16:53:14 -0800
commit10b929720a8701ef2a960f5b45e39d7a999cca41 (patch)
tree8f813863d148fbbab6faabd42324bebbad90db34 /test/example/find_div0s.cpp
parent29370f0fc7ad44f506e1bd54441f19111fe9ff5f (diff)
downloadbinaryen-10b929720a8701ef2a960f5b45e39d7a999cca41.tar.gz
binaryen-10b929720a8701ef2a960f5b45e39d7a999cca41.tar.bz2
binaryen-10b929720a8701ef2a960f5b45e39d7a999cca41.zip
overload wasm printing in std namespace
Diffstat (limited to 'test/example/find_div0s.cpp')
-rw-r--r--test/example/find_div0s.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/example/find_div0s.cpp b/test/example/find_div0s.cpp
index e74d4781f..dc2872edc 100644
--- a/test/example/find_div0s.cpp
+++ b/test/example/find_div0s.cpp
@@ -46,8 +46,7 @@ int main() {
// Check if the right operand is a constant, and if it is 0
auto right = curr->right->dyn_cast<Const>();
if (right && right->value.getInteger() == 0) {
- std::cout << "We found that ";
- printWasm(curr->left, std::cout) << " is divided by zero\n";
+ std::cout << "We found that " << curr->left << " is divided by zero\n";
}
}
}