aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/127 generated assembly/main.c
blob: fb38f9df4e7bfb34473c3535a4e0d2697484148b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>

#if defined(_WIN32) || defined(__CYGWIN__)
 __declspec(dllimport)
#endif
unsigned square_unsigned (unsigned a);

int main(void)
{
  unsigned int ret = square_unsigned (2);
  if (ret != 4) {
    printf("Got %u instead of 4\n", ret);
    return 1;
  }
  return 0;
}