/
githubmirror
/
elfutils
Обзор
Документация
Войти
/
githubmirror
/
elfutils
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/testfile_parameter_ref.c
20 строк
379 B
Mark Wielaard
tests: Add new varlocs test for dwarf_getlocation* functions.
06 сен 2013, 14:17
06 сен 2013, 14:17
6e6e54e
Код
Авторство
О чём код?
// gcc -g -O2 -o parameter_ref parameter_ref.c volatile int vv; /* Don't inline, but do allow clone to create specialized versions. */ static __attribute__((noinline)) int foo (int x, int y, int z) { int a = x * 2; int b = y * 2; int c = z * 2; vv++; return x + z; } int main (int x, char **argv) { return foo (x, 2, 3) + foo (x, 4, 3) + foo (x + 6, x, 3) + x; }