summaryrefslogtreecommitdiff
path: root/tests/literal-test.tnsl
blob: b447e57ba7a26ac1c2f6c21e52c197a0f25678e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# These should all work
;string s = "\""
;string st="\\"

;int i = 0
;int j=1

;float f = 0.2
;float d=3.1415

;char c = '\'';char ch='\u0000'

# Invalid (some may be weeded out through the verify phase):

;string s ""

;int 0 i

# Invalid ops should also be detected if dealing with literals

;char c ~= 's'

# Debate over weather these are legal

;int k = .1

;int l = 0x01