From 34ecdb71c04232fba4b097f04fc358c57e704e26 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Fri, 11 May 2018 15:05:12 -0700 Subject: 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. --- tests/preprocessor/error.slang | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/preprocessor/error.slang (limited to 'tests/preprocessor/error.slang') 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 -- cgit v1.2.3