blob: a1e2613740b8ae5dc9ace15fc6ce0233605a2b47 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
unsafe extern "C" {
pub fn returns_two() -> u32;
}
#[cfg(test)]
mod tests {
use super::returns_two;
#[test]
fn linking_works() {
assert_eq!(unsafe { returns_two() }, 2);
}
}