From 0be55824d4776a27131799e9cb7a0a7f0be478f1 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Fri, 21 Dec 2012 04:48:01 +0000 Subject: [PATCH] Implemented preprocessing error directive tests (should fail) --- tests/pperror.qc | 5 +++++ tests/pperror.tmpl | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 tests/pperror.qc create mode 100644 tests/pperror.tmpl diff --git a/tests/pperror.qc b/tests/pperror.qc new file mode 100644 index 0000000..b57f563 --- /dev/null +++ b/tests/pperror.qc @@ -0,0 +1,5 @@ +/* + * Cause a compile-time error via preprocessor directive. This code should + * not compile. + */ +#error "Fail to compile" diff --git a/tests/pperror.tmpl b/tests/pperror.tmpl new file mode 100644 index 0000000..bd1362f --- /dev/null +++ b/tests/pperror.tmpl @@ -0,0 +1,4 @@ +I: pperror.qc +D: preprocessor #error directive +T: -fail +C: -std=fteqcc -- 2.39.2