brintos

brintos / llvm-project-archived public Read only

0
0
Text · 431 B · 7017c74 Raw
23 lines · cpp
1#include <stdio.h>2#include <stdint.h>3 4extern "C"5{6   int foo();7};8 9int foo()10{11  puts("foo"); //% self.expect("image lookup -va $pc",12  //%                          substrs=[' name = "::foo()"',13  //%                                   ' mangled = "foo"'])14  return 2;15}16 17int main (int argc, char const *argv[], char const *envp[])18{          19    foo();20    return 0; //% self.expect("expression -- foo()", substrs = ['2'])21}22 23