1234567891011121314151617 |
- #include <stdio.h>
- extern "C" {
- unsigned square_unsigned (unsigned a);
- }
- int
- main (int argc, char * argv[])
- {
- unsigned int ret = square_unsigned (2);
- if (ret != 4) {
- printf("Got %u instead of 4\n", ret);
- return 1;
- }
- return 0;
- }
|