]> git.proxmox.com Git - rustc.git/blame - src/test/ui/test-panic-abort-disabled.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / test-panic-abort-disabled.rs
CommitLineData
60c5eb7d 1// error-pattern:building tests with panic=abort is not supported
e74abb32
XL
2// no-prefer-dynamic
3// compile-flags: --test -Cpanic=abort
4// run-flags: --test-threads=1
5
6// ignore-wasm no panic or subprocess support
7// ignore-emscripten no panic or subprocess support
8
9#![cfg(test)]
10
11#[test]
12fn it_works() {
13 assert_eq!(1 + 1, 2);
14}
15
16#[test]
17#[should_panic]
18fn it_panics() {
19 assert_eq!(1 + 1, 4);
20}