This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
39151f2ad8
rust
/
src
/
test
/
run-fail
/
fail-arg.rs
10 lines
94 B
Rust
Raw
Normal View
History
Unescape
Escape
Generate code properly for calls with _|_ - typed arguments The code for translating a fail (for example) would call Unreachable(), which terminates the block; if a fail appeared as an argument, this would cause an LLVM assertion failure. Changed trans_call to handle this situation correctly.
2011-07-02 23:55:38 -05:00
// xfail-stage0
Un-XFAIL fail-arg
2011-07-03 13:56:23 -05:00
// error-pattern:woe
Generate code properly for calls with _|_ - typed arguments The code for translating a fail (for example) would call Unreachable(), which terminates the block; if a fail appeared as an argument, this would cause an LLVM assertion failure. Changed trans_call to handle this situation correctly.
2011-07-02 23:55:38 -05:00
fn
f
(
int
a
)
{
log
a
;
}
Prohibit trailing whitespace under 'tidy' script. Clean up all caught cases.
2011-07-13 17:44:09 -05:00
fn
main
(
)
{
Un-XFAIL fail-arg
2011-07-03 13:56:23 -05:00
f
(
fail
"
woe
"
)
;
Prohibit trailing whitespace under 'tidy' script. Clean up all caught cases.
2011-07-13 17:44:09 -05:00
}
Reference in New Issue
Copy Permalink