Commit 9c3a5819 authored by Igor Sugak's avatar Igor Sugak Committed by Facebook Github Bot

fix build with asan and static linking

Reviewed By: meyering

Differential Revision: D6117783

fbshipit-source-id: 048b056e119bf89ab88c33b1233297d197e8acb9
parent b0b6a792
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
using folly::dynamic; using folly::dynamic;
#ifndef FOLLY_SANITIZE_ADDRESS
// This test runs without any external dependencies, including json. // This test runs without any external dependencies, including json.
// This means that if there's a test failure, there's no way to print // This means that if there's a test failure, there's no way to print
// a useful runtime representation of the folly::dynamic. We will // a useful runtime representation of the folly::dynamic. We will
...@@ -30,6 +31,7 @@ using folly::dynamic; ...@@ -30,6 +31,7 @@ using folly::dynamic;
void dynamic::print_as_pseudo_json(std::ostream& out) const { void dynamic::print_as_pseudo_json(std::ostream& out) const {
out << "<folly::dynamic object of type " << type_ << ">"; out << "<folly::dynamic object of type " << type_ << ">";
} }
#endif
TEST(Dynamic, Default) { TEST(Dynamic, Default) {
dynamic obj; dynamic obj;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment