2 #![feature(custom_attribute)]
3 #![allow(dead_code, unused_attributes)]
7 fn increment(x: i32) -> i32 {
14 fn factorial_recursive() -> i64 {
15 fn fact(n: i64) -> i64 {
26 fn call_generic() -> (i16, bool) {
27 fn id<T>(t: T) -> T { t }
31 // Test calling a very simple function from the standard library.
33 fn cross_crate_fn_call() -> i64 {
34 if 1i32.is_positive() { 1 } else { 0 }
37 // Test one of the simplest intrinsics.
39 fn test_size_of() -> usize {
40 ::std::mem::size_of::<Option<i32>>()