1 #include <stdio.h> 2 #include <stdint.h> 3 #include <vector> 4 5 namespace { 6 struct Foo 7 { 8 int i; int j; 9 }; doit(const Foo & foo)10 void doit (const Foo &foo) 11 { 12 printf ("doit(%i)\n", foo.i); 13 } 14 } main(int argc,char const * argv[],char const * envp[])15int main (int argc, char const *argv[], char const *envp[]) 16 { 17 std::vector<int> ints; 18 for (int i=0;i<10;++i) 19 ints.push_back(i); 20 printf ("hello world\n"); 21 Foo foo = { 12, 13 }; 22 doit (foo); 23 return 0; 24 } 25