aboutsummaryrefslogtreecommitdiff
path: root/ql/test/semantic_analysis/valid/test007.ql
diff options
context:
space:
mode:
Diffstat (limited to 'ql/test/semantic_analysis/valid/test007.ql')
-rw-r--r--ql/test/semantic_analysis/valid/test007.ql9
1 files changed, 9 insertions, 0 deletions
diff --git a/ql/test/semantic_analysis/valid/test007.ql b/ql/test/semantic_analysis/valid/test007.ql
new file mode 100644
index 0000000..1338a82
--- /dev/null
+++ b/ql/test/semantic_analysis/valid/test007.ql
@@ -0,0 +1,9 @@
+// Identifier reference in both condition and computed question
+form testForm {
+ "First Question"
+ someInteger : integer
+ if (someInteger > 10) {
+ "Second Question"
+ computedInteger : integer = someInteger - 10
+ }
+} \ No newline at end of file