]> git.proxmox.com Git - rustc.git/blob - tests/ui/test-attrs/test-passed-wasm.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / test-attrs / test-passed-wasm.rs
1 // no-prefer-dynamic
2 // compile-flags: --test
3 // run-flags: --test-threads=1
4 // run-pass
5 // check-run-results
6 // only-wasm32
7
8 // Tests the output of the test harness with only passed tests.
9
10 #![cfg(test)]
11
12 #[test]
13 fn it_works() {
14 assert_eq!(1 + 1, 2);
15 }
16
17 #[test]
18 fn it_works_too() {
19 assert_eq!(1 * 0, 0);
20 }