aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/v/fmt/tests/assembly/asm_keep.vv
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/vlib/v/fmt/tests/assembly/asm_keep.vv')
-rw-r--r--v_windows/v/vlib/v/fmt/tests/assembly/asm_keep.vv10
1 files changed, 10 insertions, 0 deletions
diff --git a/v_windows/v/vlib/v/fmt/tests/assembly/asm_keep.vv b/v_windows/v/vlib/v/fmt/tests/assembly/asm_keep.vv
new file mode 100644
index 0000000..a6f9e56
--- /dev/null
+++ b/v_windows/v/vlib/v/fmt/tests/assembly/asm_keep.vv
@@ -0,0 +1,10 @@
+fn main() {
+ asm volatile amd64 {
+ mov ecx, 5
+ loop_start:
+ add j, 3
+ loop loop_start
+ ; +r (j)
+ ; ; ecx
+ }
+}