]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/link-cfg/with-staticlib-deps.rs
Rollup merge of #106714 - Ezrashaw:remove-e0490, r=davidtwco
[rust.git] / tests / run-make-fulldeps / link-cfg / with-staticlib-deps.rs
1 extern crate dep_with_staticlib;
2
3 fn main() {
4     unsafe {
5         let v = dep_with_staticlib::my_function();
6         if cfg!(foo) {
7             assert_eq!(v, 1);
8         } else if cfg!(bar) {
9             assert_eq!(v, 3);
10         } else {
11             panic!("unknown");
12         }
13     }
14 }