File: t2.3.ot

package info (click to toggle)
klayout 0.30.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 292,204 kB
  • sloc: cpp: 2,068,428; ruby: 47,823; xml: 26,924; python: 14,404; sh: 1,812; tcl: 212; perl: 170; makefile: 112; ansic: 42
file content (37 lines) | stat: -rw-r--r-- 936 bytes parent folder | download | duplicates (2)
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
28
29
30
31
32
33
34
35
36
37
# <test>
#   <name>t2.3.ot</name>
#   <content-description>Two empty cells</content-description>
#   <test-intention>Basic reader capabilities</test-intention>
#   <test-intention>CELL record reading</test-intention>
#   <test-intention>Cell name specification by ID</test-intention>
#   <test-intention>Backward referencing of cell name ID</test-intention>
#   <test-intention>Mixing of implicit and explicit assignment of ID's</test-intention>
#   <must-fail>Explicit and implicit CELLNAME modes cannot be mixed</must-fail>
# </test>

header
  real 0 1000.0
  uint 0 ;# offset table is in start record
  for { set i 0 } { $i < 12 } { incr i } { uint 0 }

# ABC gets assigned 1
record CELLNAME_ID
  str ABC
  uint 1

# XYZ gets assigned 0 implicitly
record CELLNAME
  str XYZ  ;# FAIL: implicit and explicit assignment may not be mixed

# Cell XYZ (empty)
record CELL_ID
  uint 0

# Cell ABC
record CELL_ID
  uint 1

# no body.

tail