diff options
author | Carl Worth <[email protected]> | 2011-09-29 22:24:18 -0700 |
---|---|---|
committer | Carl Worth <[email protected]> | 2011-09-30 11:44:21 -0700 |
commit | 201485bae0fcba4db61ceb1e9d9916778b5bba74 (patch) | |
tree | d5cf1cab8f66ec2da14a79086ea51895df711c65 /bin/install-sh | |
parent | c4aaf7943c2cdff0e2148b5c05813356dc99696d (diff) |
glcpp: Add a test for #elif with an undefined macro.
As written, this test correctly raises an error for #elif being used
with an undefined macro (and not as an argument to "defined"). If the
preceding #if were '#if 1' then this diagnositc would correctly be
hidden. That allows code such as the following to not raise an error:
#ifndef MAYBE_UNDEFINED
#elif MAYBE_UNDEFINED < 5
...
#endif
So this test case is working as expected already. We add it here just
to improve test coverage.
Reviewed-by: Kenneth Graunke <[email protected]>
Signed-off-by: Carl Worth <[email protected]>
Diffstat (limited to 'bin/install-sh')
0 files changed, 0 insertions, 0 deletions