Layout allocation fail test

This commit is contained in:
Léa Saviot
2018-07-02 11:13:13 +02:00
parent 958baee216
commit 2590133040

View File

@@ -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;
}