diff options
Diffstat (limited to 'gcc/cil/tests/attribute.c')
-rw-r--r-- | gcc/cil/tests/attribute.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/cil/tests/attribute.c b/gcc/cil/tests/attribute.c new file mode 100644 index 00000000000..591e12198f3 --- /dev/null +++ b/gcc/cil/tests/attribute.c @@ -0,0 +1,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; +} |