summaryrefslogtreecommitdiffhomepage
path: root/CompilerDriver/cc2/regression-tests/pure2-function-multiple-forward-arguments.cpp2
blob: c8eb8323ae9029375ed098bbf0bdf6a1a2434dd2 (plain)
1
2
3
4
5
6
7
8
9
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 = "";
}