File: if

package info (click to toggle)
tcng 10b-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,632 kB
  • ctags: 2,515
  • sloc: ansic: 19,038; pascal: 4,640; yacc: 2,619; sh: 1,908; perl: 1,546; lex: 772; makefile: 755
file content (16 lines) | stat: -rw-r--r-- 481 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# "if" tc reference example ---------------------------------------------------
tcsim -v examples/u32 | sed '/.*u32 .* returns /s///p;d'
OK (0) (1:1, 0x1)
OK (0) (1:2, 0x2)
OK (0) (1:3, 0x3)
OK (0) (1:4, 0x4)
OK (0) (1:5, 0x5)
UNSPEC (-1)
# "if" tcng equivalent --------------------------------------------------------
tcsim -v examples-ng/u32 | sed '/.*u32 .* returns /s///p;d'
OK (0) (1:1, 0x1)
OK (0) (1:2, 0x2)
OK (0) (1:3, 0x3)
OK (0) (1:4, 0x4)
OK (0) (1:5, 0x5)
UNSPEC (-1)