summaryrefslogtreecommitdiff
path: root/test/unit/expr
diff options
context:
space:
mode:
authorTim King <taking@google.com>2016-11-13 01:05:26 -0800
committerTim King <taking@google.com>2016-11-13 01:05:26 -0800
commit31c0d3b5f464983eab6e72d234934b29ef2027b6 (patch)
treeb483b1b8f4cd4cf5612a276048c669cabea28749 /test/unit/expr
parentd8ce5358ad4d40eb2d86fe17fead9dc258d155b5 (diff)
Switching a large allocation to be heap allocated.
Diffstat (limited to 'test/unit/expr')
-rw-r--r--test/unit/expr/node_builder_black.h5
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 */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback