diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2018-05-11 15:05:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-11 15:05:12 -0700 |
| commit | 34ecdb71c04232fba4b097f04fc358c57e704e26 (patch) | |
| tree | d501e102badf434af696836c708ad70cdbb379be /tests/preprocessor/error.slang | |
| parent | 5e604a6f39ef8e8086702d41113ea78856804c99 (diff) | |
Add tests for custom #error and #warning messages (#562)
Resolves #310
The behavior was fixed in #484, but that change didn't add test cases to cover the new functionality.
Diffstat (limited to 'tests/preprocessor/error.slang')
| -rw-r--r-- | tests/preprocessor/error.slang | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/preprocessor/error.slang b/tests/preprocessor/error.slang new file mode 100644 index 000000000..3e72137de --- /dev/null +++ b/tests/preprocessor/error.slang @@ -0,0 +1,13 @@ +//TEST:SIMPLE: + +// #error support + +#define FIRST 0 + +#if FIRST +#error Not this one! +#else + +#error This isn't valid! + +#endif |
