diff options
author | Carl Worth <cworth@cworth.org> | 2010-05-20 22:27:07 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-05-20 22:27:07 -0700 |
commit | b20d33c5c6fea8e392c26e9ab060efd14034f1f9 (patch) | |
tree | 0285aa21a9c693a155d02a1b1f715137b49f494c /tests/048-if-nested.c | |
parent | d8327e575dd20fe696f3a44ada4bd4001b15db27 (diff) |
Implement #if, #else, #elif, and #endif with tests.
So far the only expression implemented is a single integer literal,
but obviously that's easy to extend. Various things including nesting
are tested here.
Diffstat (limited to 'tests/048-if-nested.c')
-rw-r--r-- | tests/048-if-nested.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/048-if-nested.c b/tests/048-if-nested.c new file mode 100644 index 0000000000..fc4679c3be --- /dev/null +++ b/tests/048-if-nested.c @@ -0,0 +1,11 @@ +success_1 +#if 0 +failure_1 +#if 1 +failure_2 +#else +failure_3 +#endif +failure_4 +#endif +success_2 |