summaryrefslogtreecommitdiffstats
path: root/test cases/common/118 llvm ir and assembly/main.cpp
blob: aac3cbfefe02fe10d1101040fb8328b9d94ac78d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

extern "C" {
  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;
}