Commit 97c7b417 authored by Barney Moss's avatar Barney Moss Committed by facebook-github-bot-0

Unit test showing array assignment problem on gcc 4.9

Summary: Unit test showing array assignment problem on gcc 4.9

Reviewed By: lbrandy

Differential Revision: D2739900

fb-gh-sync-id: 6b0fde956672b8248fbd4e620fd112195c45c646
parent 91499a64
......@@ -229,6 +229,16 @@ TEST(Dynamic, DeepCopy) {
EXPECT_EQ(obj2.at("a"), expected);
}
TEST(Dynamic, ArrayReassignment) {
dynamic o = 1;
dynamic d1 = {o};
EXPECT_EQ(dynamic::ARRAY, d1.type());
d1 = {o};
EXPECT_EQ(dynamic::ARRAY, d1.type());
}
TEST(Dynamic, Operator) {
bool caught = false;
try {
......
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