Home | History | Annotate | Download | only in python
      1 #include <unistd.h>
      2 #include <cstdio>
      3 
      4 namespace some_namespace {
      5   static __attribute__((noinline)) int some_function(int x, int y) {
      6 	  volatile int z = x + y;
      7 	  return z;
      8   }
      9 }
     10 
     11 int 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