File: non_pub_extern.rs

package info (click to toggle)
rust-cbindgen 0.27.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,616 kB
  • sloc: ansic: 15; makefile: 11
file content (13 lines) | stat: -rw-r--r-- 181 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
#[no_mangle]
static FIRST: u32 = 10;

#[export_name = "RENAMED"]
static SECOND: u32 = 42;

#[no_mangle]
extern "C" fn first()
{ }

#[export_name = "renamed"]
extern fn second()
{ }