summaryrefslogtreecommitdiffhomepage
path: root/CompilerDriver/cc2/regression-tests/pure2-function-multiple-forward-arguments.cpp2
diff options
context:
space:
mode:
Diffstat (limited to 'CompilerDriver/cc2/regression-tests/pure2-function-multiple-forward-arguments.cpp2')
-rw-r--r--CompilerDriver/cc2/regression-tests/pure2-function-multiple-forward-arguments.cpp210
1 files changed, 10 insertions, 0 deletions
diff --git a/CompilerDriver/cc2/regression-tests/pure2-function-multiple-forward-arguments.cpp2 b/CompilerDriver/cc2/regression-tests/pure2-function-multiple-forward-arguments.cpp2
new file mode 100644
index 0000000..c8eb832
--- /dev/null
+++ b/CompilerDriver/cc2/regression-tests/pure2-function-multiple-forward-arguments.cpp2
@@ -0,0 +1,10 @@
+fun: (forward s1 : std::string, forward s2 : std::string, forward s3 : std::string) = {
+ std::cout << s1 << s2 << s3 << std::endl;
+}
+
+main: () = {
+ b : std::string = "b";
+ c : std::string = "c";
+ fun(std::string("a"), b, c);
+ b = "";
+}