1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
/* * This tests function attributes. */ int foo(int) __attribute__((cil_name("foo"))); int foo(int max) { int i, x; x = 0; for(i=0; i < max; ++i) x += i; return x; } int main() { int x; x = foo(50); return 0; }