Mercurial > ~dholland > hg > tradcpp > index.cgi
view tests/t24.c @ 135:eaae8014a94a
Don't assert and leak memory if failing during argument collection.
Once you have a -D option or a -include foo option, you need to clean
up the arrays those are accumulated in if you die before they're
collected and handled.
author | David A. Holland |
---|---|
date | Tue, 09 Jul 2013 13:35:40 -0400 |
parents | de18d1ac7d34 |
children |
line wrap: on
line source
#if 0 wrong #endif #if 1 right #endif #if -1 right #endif #if 0 + 0 wrong #endif #if 1 + 1 right #endif #if 1 - 1 wrong #endif #if -1 + 1 wrong #endif #if 3 - 2 - 1 wrong #endif #if 3 * 2 - 6 wrong #endif #if 6 - 2 * 3 wrong #endif #if 3 - 3 && 1 wrong #endif #if 3 - 3 || 0 wrong #endif #if 1 && 0 wrong #endif #if 0 && 1 wrong #endif #if 1 || 0 right #endif #if 0 || 1 right #endif #if (0 || 1) && (0 || 0) wrong #endif