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/047-if-elif-else.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/047-if-elif-else.c')
| -rw-r--r-- | tests/047-if-elif-else.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/047-if-elif-else.c b/tests/047-if-elif-else.c new file mode 100644 index 0000000000..e8f0838a9e --- /dev/null +++ b/tests/047-if-elif-else.c @@ -0,0 +1,11 @@ +success_1 +#if 0 +failure_1 +#elif 0 +failure_2 +#elif 0 +failure_3 +#else +success_2 +#endif +success_3 |
