| 1 | // Not real external functions, so we won't call them |
| 2 | // We just want to make sure they compile |
| 3 | |
| 4 | struct Foo {} |
| 5 | |
| 6 | fn C.a(a string, b i32) f32 |
| 7 | fn C.b(a &voidptr) |
| 8 | fn C.c(a string, b ...string) string |
| 9 | fn C.d(a ...int) |
| 10 | |
| 11 | // TODO: Should this be allowed? |
| 12 | fn C.g(string, ...int) |
| 13 | fn C.h(&int) |
| 14 | |
| 15 | fn test_null() { |
| 16 | np := C.NULL |
| 17 | assert typeof(np).name == 'voidptr' |
| 18 | } |
| 19 |