You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
353 B
18 lines
353 B
#include <unistd.h>
|
|
#include <cstdio>
|
|
|
|
namespace some_namespace {
|
|
static __attribute__((noinline)) int some_function(int x, int y) {
|
|
volatile int z = x + y;
|
|
return z;
|
|
}
|
|
}
|
|
|
|
int main() {
|
|
printf("%p\n", &some_namespace::some_function);
|
|
fflush(stdout);
|
|
printf("result = %d\n", some_namespace::some_function(42, 11));
|
|
sleep(1000);
|
|
return 0;
|
|
}
|