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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
|
#!/bin/sh
. ./Common
###############################################################################
fped_fail "delete frame: can't self-destruct" <<EOF
frame f {
%del f
}
EOF
expect <<EOF
3: a frame can't delete itself near "}"
EOF
#------------------------------------------------------------------------------
fped_dump "delete frame: content disappears" <<EOF
frame f {
vec @(0mm, 0mm)
}
%del f
EOF
expect <<EOF
/* MACHINE-GENERATED ! */
package "_"
unit mm
EOF
#------------------------------------------------------------------------------
fped_dump "delete frame: references disappear" <<EOF
frame f {
vec @(0mm, 0mm)
}
frame f @
%del f
EOF
expect <<EOF
/* MACHINE-GENERATED ! */
package "_"
unit mm
EOF
#------------------------------------------------------------------------------
fped_dump "delete frame: measurements disappear" <<EOF
frame f {
v: vec @(0mm, 0mm)
}
frame f @
meas f.v -> f.v
%del f
EOF
expect <<EOF
/* MACHINE-GENERATED ! */
package "_"
unit mm
EOF
#------------------------------------------------------------------------------
fped_dump "delete frame: measurements with qualifiers disappear" <<EOF
frame f {
v: vec @(0mm, 0mm)
}
frame g { frame f @ }
frame g @
meas g/f.v -> f.v
%del g
EOF
expect <<EOF
/* MACHINE-GENERATED ! */
frame f {
v: vec @(0mm, 0mm)
}
package "_"
unit mm
EOF
###############################################################################
|