summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Syntax/FunctionBracket1.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/Syntax/FunctionBracket1.cmake')
-rw-r--r--Tests/RunCMake/Syntax/FunctionBracket1.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/Syntax/FunctionBracket1.cmake b/Tests/RunCMake/Syntax/FunctionBracket1.cmake
new file mode 100644
index 0000000..8ed4f65
--- /dev/null
+++ b/Tests/RunCMake/Syntax/FunctionBracket1.cmake
@@ -0,0 +1,6 @@
+function(fun x)
+ message([[${x},${ARGN},${ARGC},${ARGV},${ARGV0},${ARGV1},${ARGV2}:]]
+ "${x},${ARGN},${ARGC},${ARGV},${ARGV0},${ARGV1},${ARGV2}")
+endfunction(fun)
+fun(a n)
+fun(b n)