From 25901330401373fb24eda6cda0585d024f61b401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Mon, 2 Jul 2018 11:13:13 +0200 Subject: [PATCH] Layout allocation fail test --- test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.cpp b/test.cpp index 7da9b9b95..e606fcb3a 100644 --- a/test.cpp +++ b/test.cpp @@ -278,8 +278,7 @@ void testPoolLayoutAllocationFail() { // Allocation fail CharLayoutRef char11('a'); - /*Expression e = ; - e.simplify*/ + assert(strcmp(char11.node()->description(), "Allocation Failed") == 0); } typedef void (test)(); @@ -302,6 +301,7 @@ int main() { runTest(testStealOperand); runTest(testSimplify); runTest(testChildSort); + runTest(testPoolLayoutAllocationFail); printf("\n*******************\nEnd of tests\n*******************\n\n"); return 0; }