xref: /aosp_15_r20/external/angle/build/rust/tests/test_rust_unittests/main.rs (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 // Copyright 2021 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 chromium::import! {
6     "//build/rust/tests/test_rust_static_library";
7 }
8 
9 use test_rust_static_library::add_two_ints_via_rust;
10 
11 #[test]
test_call_into_mixed_static_library()12 fn test_call_into_mixed_static_library() {
13     assert_eq!(add_two_ints_via_rust(5, 7), 12)
14 }
15