1 #include <stdio.h> 2 #include <stdint.h> 3 4 extern "C" 5 { 6 int foo(); 7 }; 8 foo()9int foo() 10 { 11 puts("foo"); 12 return 2; 13 } 14 main(int argc,char const * argv[],char const * envp[])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