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