main.cpp 248 B

1234567891011121314151617
  1. #include <stdio.h>
  2. extern "C" {
  3. unsigned square_unsigned (unsigned a);
  4. }
  5. int
  6. main (int argc, char * argv[])
  7. {
  8. unsigned int ret = square_unsigned (2);
  9. if (ret != 4) {
  10. printf("Got %u instead of 4\n", ret);
  11. return 1;
  12. }
  13. return 0;
  14. }