brintos

brintos / llvm-project-archived public Read only

0
0
Text · 310 B · cf94bc3 Raw
15 lines · cpp
1#include <stdio.h>2#include <string>3 4int foo(int x, int y) {5  printf("Got input %d, %d\n", x, y);6  return x + y + 3; // breakpoint 17}8 9int main(int argc, char const *argv[]) {10  printf("argc: %d\n", argc);11  int result = foo(20, argv[0][0]);12  printf("result: %d\n", result); // breakpoint 213  return 0;14}15