parent
d44185026d
commit
8137eb437a
3 changed files with 54 additions and 0 deletions
@ -0,0 +1,12 @@ |
||||
// SPDX-license-identifer: Apache-2.0
|
||||
// Copyright © 2023 Red Hat, Inc
|
||||
|
||||
#pragma once |
||||
|
||||
#include "other.h" |
||||
|
||||
int32_t add(const int32_t, const int32_t); |
||||
|
||||
static inline int32_t sub(const int32_t a, const int32_t b) { |
||||
return a - b; |
||||
} |
@ -0,0 +1,14 @@ |
||||
// SPDX-license-identifer: Apache-2.0
|
||||
// Copyright © 2023 Red Hat, Inc
|
||||
|
||||
#![allow(non_upper_case_globals)] |
||||
#![allow(non_camel_case_types)] |
||||
#![allow(non_snake_case)] |
||||
|
||||
include!("header3.rs"); |
||||
|
||||
fn main() { |
||||
unsafe { |
||||
std::process::exit(add(0, sub(0, 0))); |
||||
}; |
||||
} |
Loading…
Reference in new issue