1#include <stdio.h>
2#include <stdint.h>
3
4extern "C"
5{
6 int foo();
7};
8
9int foo()
10{
11 puts(s: "foo");
12 return 2;
13}
14
15int main (int argc, char const *argv[], char const *envp[])
16{
17 foo();
18 return 0; //% self.expect("expression -- foo()", substrs = ['2'])
19}
20
21

source code of lldb/test/API/lang/cpp/extern_c/main.cpp