Debian Codegraph @

test cases/common/118 llvm ir and assembly/main.cpp

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