]> git.proxmox.com Git - rustc.git/blob - 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
1 // error-pattern:building tests with panic=abort is not supported
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]
12 fn it_works() {
13 assert_eq!(1 + 1, 2);
14 }
15
16 #[test]
17 #[should_panic]
18 fn it_panics() {
19 assert_eq!(1 + 1, 4);
20 }