summary refs log tree commit diff stats
path: root/tests/accept/run/tarray2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/accept/run/tarray2.nim')
-rwxr-xr-xtests/accept/run/tarray2.nim24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/accept/run/tarray2.nim b/tests/accept/run/tarray2.nim
deleted file mode 100755
index 048f51795..000000000
--- a/tests/accept/run/tarray2.nim
+++ /dev/null
@@ -1,24 +0,0 @@
-discard """
-  file: "tarray2.nim"
-  output: "[16, 25, 36]"
-"""
-# simple check for one dimensional arrays

-

-type

-  TMyArray = array[0..2, int]

-

-proc mul(a, b: TMyarray): TMyArray =

-  result = a
-  for i in 0..len(a)-1:
-    result[i] = a[i] * b[i]
-
-var
-  x, y, z: TMyArray
- 
-x = [ 4, 5, 6 ]
-y = x
-echo repr(mul(x, y))
-
-#OUT [16, 25, 36]

-
-