summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-block-cross-crate-fn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/const-block-cross-crate-fn.rs')
-rw-r--r--tests/ui/consts/const-block-cross-crate-fn.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/consts/const-block-cross-crate-fn.rs b/tests/ui/consts/const-block-cross-crate-fn.rs
new file mode 100644
index 000000000..0ac3830d2
--- /dev/null
+++ b/tests/ui/consts/const-block-cross-crate-fn.rs
@@ -0,0 +1,9 @@
+// run-pass
+// aux-build:cci_const_block.rs
+
+
+extern crate cci_const_block;
+
+pub fn main() {
+ assert_eq!(cci_const_block::BLOCK_FN_DEF(390), 400);
+}