From: Wolfgang (Blub) Bumiller Date: Tue, 4 Dec 2012 11:50:38 +0000 (+0100) Subject: noref -compile testcase X-Git-Tag: 0.1.9~118 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=36fe4e2729426e011787dae0e45ae350c9822180;p=xonotic%2Fgmqcc.git noref -compile testcase --- diff --git a/tests/noref.qc b/tests/noref.qc new file mode 100644 index 0000000..885d47e --- /dev/null +++ b/tests/noref.qc @@ -0,0 +1,7 @@ +#pragma noref 1 +float unused_global_1; +#pragma noref 0 +noref float unused_global_2; + +void() main = { +}; diff --git a/tests/noref.tmpl b/tests/noref.tmpl new file mode 100644 index 0000000..82f3d3d --- /dev/null +++ b/tests/noref.tmpl @@ -0,0 +1,4 @@ +I: noref.qc +D: noref keyword and pragma +T: -compile +C: -std=qcc -Wall -Werror