Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160502395
D11316.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D11316.id.diff
View Options
Index: bin/expr/expr.y
===================================================================
--- bin/expr/expr.y
+++ bin/expr/expr.y
@@ -112,6 +112,19 @@
| expr '/' expr { $$ = op_div($1, $3); }
| expr '%' expr { $$ = op_rem($1, $3); }
| expr ':' expr { $$ = op_colon($1, $3); }
+ | expr ':' '(' { $$ = op_colon($1, make_str("(")); }
+ | expr ':' ')' { $$ = op_colon($1, make_str(")")); }
+ | expr ':' '|' { $$ = op_colon($1, make_str("|")); }
+ | expr ':' '&' { $$ = op_colon($1, make_str("&")); }
+ | expr ':' '=' { $$ = op_colon($1, make_str("=")); }
+ | expr ':' '>' { $$ = op_colon($1, make_str(">")); }
+ | expr ':' '<' { $$ = op_colon($1, make_str("<")); }
+ | expr ':' '+' { $$ = op_colon($1, make_str("+")); }
+ | expr ':' '-' { $$ = op_colon($1, make_str("-")); }
+ | expr ':' '*' { $$ = op_colon($1, make_str("*")); }
+ | expr ':' '/' { $$ = op_colon($1, make_str("/")); }
+ | expr ':' '%' { $$ = op_colon($1, make_str("%")); }
+ | expr ':' ':' { $$ = op_colon($1, make_str(":")); }
;
%%
Index: contrib/netbsd-tests/bin/expr/t_expr.sh
===================================================================
--- contrib/netbsd-tests/bin/expr/t_expr.sh
+++ contrib/netbsd-tests/bin/expr/t_expr.sh
@@ -105,9 +105,6 @@
atf_set "descr" "Dangling arithemtic operator"
}
arithmetic_ops_body() {
- # Begin FreeBSD
- atf_expect_fail "the following testcases fail with syntax errors on FreeBSD"
- # End FreeBSD
test_expr '.java_wrapper : /' '0'
test_expr '4 : \*' '0'
test_expr '4 : +' '0'
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jun 26, 4:11 AM (8 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34341078
Default Alt Text
D11316.id.diff (1 KB)
Attached To
Mode
D11316: expr(1): Allow operators as right-hand-side to matching operator
Attached
Detach File
Event Timeline
Log In to Comment