aboutsummaryrefslogtreecommitdiff
path: root/tests/iii/implicit-string-opt-in/program.cps
diff options
context:
space:
mode:
Diffstat (limited to 'tests/iii/implicit-string-opt-in/program.cps')
-rw-r--r--tests/iii/implicit-string-opt-in/program.cps14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/iii/implicit-string-opt-in/program.cps b/tests/iii/implicit-string-opt-in/program.cps
new file mode 100644
index 0000000..b5afccc
--- /dev/null
+++ b/tests/iii/implicit-string-opt-in/program.cps
@@ -0,0 +1,14 @@
+CLASS STRING
+ Text : C_STRING
+ PROCEDURE NEW(Value : C_STRING)
+ Text <- Value
+ ENDPROCEDURE
+ FUNCTION C_STR() RETURNS C_STRING
+ RETURN Text
+ ENDFUNCTION
+ENDCLASS
+DECLARE Explicit : STRING("explicit")
+OUTPUT Explicit
+DECLARE Text : STRING
+Text <- "requires opt-in"
+OUTPUT "requires opt-in"