Mercurial > ~dholland > hg > tradcpp > index.cgi
view tests/t24.c @ 167:fa9752f194c6
Don't shortcut macro expansion of non-parameter macros.
It won't work once we have more kinds of expansion items than strings
and arguments, viz., magic tokens for __FILE__ and __LINE__ and so on.
(separate version of this applied against Joerg's changes, because we
need to revert some of them)
author | David A. Holland |
---|---|
date | Fri, 12 Jun 2015 01:55:31 -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