aboutsummaryrefslogtreecommitdiff
path: root/ql/test/semantic_analysis/valid/test005.ql
diff options
context:
space:
mode:
Diffstat (limited to 'ql/test/semantic_analysis/valid/test005.ql')
-rw-r--r--ql/test/semantic_analysis/valid/test005.ql15
1 files changed, 15 insertions, 0 deletions
diff --git a/ql/test/semantic_analysis/valid/test005.ql b/ql/test/semantic_analysis/valid/test005.ql
new file mode 100644
index 0000000..8620dc9
--- /dev/null
+++ b/ql/test/semantic_analysis/valid/test005.ql
@@ -0,0 +1,15 @@
+// Identifier reference in nested condition
+form testForm {
+ "First Question"
+ firstCondition : boolean
+ "Second Question"
+ secondCondition : boolean
+ if (firstCondition) {
+ "Third Question"
+ anotherIdentifier : integer
+ if (secondCondition) {
+ "Fourth Question"
+ yetAnotherIdentifier : decimal
+ }
+ }
+} \ No newline at end of file