Revision 9b0a0ba9 filter/test6.conf

View differences:

filter/test6.conf
9 9

  
10 10
define xyzzy = (120+10);
11 11

  
12
protocol device {}
13

  
12 14
function callme(int arg1; int arg2)
13 15
int local1;
14 16
int local2;
......
30 32
	return 15;
31 33
}
32 34

  
33
function paths()
35
function _paths()
34 36
bgpmask pm1;
35 37
bgpmask pm2;
36 38
bgppath p2;
......
97 99
pair pp;
98 100
int set is;
99 101
prefix set pxs;
100
string s;
102
string str;
101 103
{ 
102 104
	print "Testing filter language:";
103 105
	i = four; 
......
129 131
	print "Testing pairs: (1,2) = ", (1,2), " = ", pp;
130 132
	print "Testing enums: ", RTS_DUMMY, " ", RTS_STATIC;
131 133

  
132
	s = "Hello";
133
	print "Testing string: ", s, " true: ", s ~ "Hell*", " false: ", s ~ "ell*";
134
	str = "Hello";
135
	print "Testing string: ", str, " true: ", str ~ "Hell*", " false: ", str ~ "ell*";
134 136
	
135 137
	b = true;
136 138
	print "Testing bool: ", b, ", ", !b;
......
156 158
	i = fifteen();
157 159
	print "Testing function calls: 15 = ", i;
158 160

  
159
	paths();
161
	_paths();
160 162

  
161 163
	print "done";
162
	quitbird;
163
#	print "*** FAIL: this is unreachable"; 
164
	return 0;
165
	print "*** FAIL: this is unreachable";
166
	quitbird;  # quit with err exit code 1
164 167
}
165 168

  
166 169
filter testf 

Also available in: Unified diff