diff options
author | Tim King <taking@google.com> | 2016-11-13 01:05:26 -0800 |
---|---|---|
committer | Tim King <taking@google.com> | 2016-11-13 01:05:26 -0800 |
commit | 31c0d3b5f464983eab6e72d234934b29ef2027b6 (patch) | |
tree | b483b1b8f4cd4cf5612a276048c669cabea28749 /test/unit/expr | |
parent | d8ce5358ad4d40eb2d86fe17fead9dc258d155b5 (diff) |
Switching a large allocation to be heap allocated.
Diffstat (limited to 'test/unit/expr')
-rw-r--r-- | test/unit/expr/node_builder_black.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/expr/node_builder_black.h b/test/unit/expr/node_builder_black.h index b3f51a197..3e661e390 100644 --- a/test/unit/expr/node_builder_black.h +++ b/test/unit/expr/node_builder_black.h @@ -148,7 +148,10 @@ public: /* Extreme size tests */ NodeBuilder<0> ws_size_0; - NodeBuilder<LARGE_K> ws_size_large; + // Allocating on the heap instead of the stack. + NodeBuilder<LARGE_K>* ws_size_large = + new NodeBuilder<LARGE_K>; + delete ws_size_large; /* CopyConstructors */ |