summaryrefslogtreecommitdiff
path: root/test/build-script/bar.rs
blob: 30de2756785b96030fc9f22cc0961598c07b05ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#[cfg(not(bar))]
pub fn hello(){
 println!("hello bar");
}

#[cfg(bar)]
pub fn hello(){
 println!("hello build script");
}

pub fn add(a: i32, b: i32) -> i32 {
    a + b
}