summary refs log tree commit diff
path: root/src/test/run-pass/module-polymorphism2.rs
blob: 7bb55c454306dcb514bfce95bd85c6768004f0b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
// This isn't really xfailed; it's used by the
// module-polymorphism.rc test
// xfail-test

fn main() {
    // All of these functions are defined by a single module
    // source file but instantiated for different types
    assert mystd::float::plus(1.0f, 2.0f) == 3.0f;
    assert mystd::f64::plus(1.0f64, 2.0f64) == 3.0f64;
    assert mystd::f32::plus(1.0f32, 2.0f32) == 3.0f32;
}