File: typerr

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 (113 lines) | stat: -rw-r--r-- 3,615 bytes parent folder | download | duplicates (5)
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# type conversion error: data_convert (1) -------------------------------------
tcc -c 2>&1
fifo (1kbps);
EOF
ERROR
<stdin>:1: invalid type conversion (expected integer instead of rate) near ")"
# type conversion error: data_convert (2) -------------------------------------
tcc -c 2>&1
cbq (bandwidth 1Mbps,priomap $c,maxburst 1kB,avpkt 1kB,allot 2kB);
EOF
ERROR
<stdin>:1: invalid type conversion (expected size in packets instead of size in bytes) near ","
# type conversion error: data_add_unit ----------------------------------------
tcc -c 2>&1
$n = 5 sec;
fifo (limit $n bps);
EOF
ERROR
<stdin>:2: invalid type conversion (expected number instead of time) near "bps"
# type conversion error: + ----------------------------------------------------
tcc -c 2>&1
$x = 5+1kbps;
EOF
ERROR
<stdin>:1: invalid types for operator "+" (integer and rate) near ";"
# type conversion error: - ----------------------------------------------------
tcc -c 2>&1
$x = drop-5p;
EOF
ERROR
<stdin>:1: invalid types for operator "-" (decision and size in packets) near ";"
# type conversion error: * ----------------------------------------------------
tcc -c 2>&1
$x = 1 kB*7sec;
EOF
ERROR
<stdin>:1: invalid types for operator "*" (size in bytes and time) near ";"
# type conversion error: / ----------------------------------------------------
tcc -c 2>&1
$x = 1 kbps/4sec;
EOF
ERROR
<stdin>:1: invalid types for operator "/" (rate and time) near ";"
# type conversion error: unary unum (!) ---------------------------------------
tcc -c 2>&1
$x = !drop;
EOF
ERROR
<stdin>:1: invalid type for operator "!" (decision) near ";"
# type conversion error: binary unum (<<) -------------------------------------
tcc -c 2>&1
$x = 3.14159 << 1pps;
EOF
ERROR
<stdin>:1: invalid types for operator "<<" (floating-point number and packet rate) near ";"
# type conversion error: relational, a numeric (==) ---------------------------
tcc -c 2>&1
$x = 7p == 5;
EOF
ERROR
<stdin>:1: invalid types for operator "==" (size in packets and integer) near ";"
# type conversion error: relational, a non-numeric (>) ------------------------
tcc -c 2>&1
$x = drop > drop;
EOF
ERROR
<stdin>:1: invalid types for operator ">" (decision and decision) near ";"
# type conversion error: : : --------------------------------------------------
tcc -c 2>&1
$x = 5:1:2B;
EOF
ERROR
<stdin>:1: invalid types for operator "mask (::)" (integer, integer, and size in bytes) near "B"
# type conversion error: conform ----------------------------------------------
tcc -c 2>&1
$x = 1 kbps;
$x = conform $x;
EOF
ERROR
<stdin>:2: invalid type conversion (expected policer instead of rate) near ";"
# type conversion error: count ------------------------------------------------
tcc -c 2>&1
$x = 0x0815;
$x = count $x;
EOF
ERROR
<stdin>:2: invalid type conversion (expected policer instead of integer) near ";"
# type conversion error: class selection path ---------------------------------
tcc -c 2>&1
dsmark {
    class (<$c>) if 1;
    $c = fifo;
    fifo;
}
EOF
ERROR
<stdin>:2: invalid type in class selection path (expected class, not queuing discipline)
# type conversion error: priomap in PRIO --------------------------------------
tcc -c 2>&1
prio (priomap $c) {
    $c = fw;
}
EOF
ERROR
<stdin>:1: invalid type in 1st entry of "priomap" (expected class, not filter)
# type conversion error: priomap in CBQ ---------------------------------------
tcc -c 2>&1
cbq (bandwidth 1Mbps,priomap $c,maxburst 5p,avpkt 1kB,allot 2kB) {
    $c = police(rate 1kbps,burst 2kB);
}
EOF
ERROR
<stdin>:1: invalid type in 1st entry of "priomap" (expected class, not policer)