]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/c-unwind-abi-catch-panic/add.c
Optimize `TyKind::eq`.
[rust.git] / tests / run-make-fulldeps / c-unwind-abi-catch-panic / add.c
1 #ifdef _WIN32
2 __declspec(dllexport)
3 #endif
4
5 // An external function, defined in Rust.
6 extern void panic_if_greater_than_10(unsigned x);
7
8 unsigned add_small_numbers(unsigned a, unsigned b) {
9     unsigned c = a + b;
10     panic_if_greater_than_10(c);
11     return c;
12 }