2015-12-01 10:58:53 +08:00
|
|
|
use "libc.zig";
|
|
|
|
|
2015-12-01 13:53:37 +08:00
|
|
|
// purposefully conflicting function with main.zig
|
|
|
|
// but it's private so it should be OK
|
|
|
|
fn private_function() {
|
2015-12-01 10:58:53 +08:00
|
|
|
puts("it works!");
|
|
|
|
}
|
2015-12-01 13:53:37 +08:00
|
|
|
|
2015-12-01 17:08:58 +08:00
|
|
|
pub fn print_text() {
|
2015-12-01 13:53:37 +08:00
|
|
|
private_function();
|
|
|
|
}
|