summary refs log blame commit diff stats
path: root/tests/accept/compile/tstrdesc.nim
blob: 1c2e85b4bf01963b8d00551e5a8ebbbc7b6afd7f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11





                       
                                 



                                                                          
                                                       
 
 
var
  x: array [0..2, int]

x = [0, 1, 2]

type
  TStringDesc {.final.} = object
    len, space: int # len and space without counting the terminating zero
    data: array [0..0, char] # for the '\0' character

var
  emptyString {.exportc: "emptyString".}: TStringDesc