1 #include <unistd.h> 2 #include <cstdio> 3 4 namespace some_namespace { some_function(int x,int y)5 static __attribute__((noinline)) int some_function(int x, int y) { 6 volatile int z = x + y; 7 return z; 8 } 9 } 10 main()11int main() { 12 printf("%p\n", &some_namespace::some_function); 13 fflush(stdout); 14 printf("result = %d\n", some_namespace::some_function(42, 11)); 15 sleep(1000); 16 return 0; 17 } 18