From: Dale Weiler Date: Fri, 21 Dec 2012 04:48:01 +0000 (+0000) Subject: Implemented preprocessing error directive tests (should fail) X-Git-Tag: 0.2~28 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=0be55824d4776a27131799e9cb7a0a7f0be478f1;hp=0e40ef172af05cbc8154f99c250d531723c44b8c;p=xonotic%2Fgmqcc.git Implemented preprocessing error directive tests (should fail) --- 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