summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Syntax/AtWithVariableAtOnly.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/Syntax/AtWithVariableAtOnly.cmake')
-rw-r--r--Tests/RunCMake/Syntax/AtWithVariableAtOnly.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/Syntax/AtWithVariableAtOnly.cmake b/Tests/RunCMake/Syntax/AtWithVariableAtOnly.cmake
new file mode 100644
index 0000000..e06484c
--- /dev/null
+++ b/Tests/RunCMake/Syntax/AtWithVariableAtOnly.cmake
@@ -0,0 +1,8 @@
+set(right "wrong")
+set(var "\${right}")
+# Expanded here.
+set(ref "@var@")
+
+# No dereference done at all.
+string(CONFIGURE "${ref}" output @ONLY)
+message("-->${output}<--")