summaryrefslogtreecommitdiff
path: root/test/build-script/bar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/build-script/bar.rs')
-rw-r--r--test/build-script/bar.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/build-script/bar.rs b/test/build-script/bar.rs
new file mode 100644
index 0000000..30de275
--- /dev/null
+++ b/test/build-script/bar.rs
@@ -0,0 +1,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
+}
+