File: dummy.cc

package info (click to toggle)
bpfcc 0.18.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,368 kB
  • sloc: ansic: 132,727; python: 36,226; cpp: 26,973; sh: 710; yacc: 525; makefile: 141; lex: 94
file content (17 lines) | stat: -rw-r--r-- 353 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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;
}