diff options
Diffstat (limited to 'features/macro/mkc_attribute_const.c')
-rw-r--r-- | features/macro/mkc_attribute_const.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/features/macro/mkc_attribute_const.c b/features/macro/mkc_attribute_const.c new file mode 100644 index 0000000..1e4d8c3 --- /dev/null +++ b/features/macro/mkc_attribute_const.c @@ -0,0 +1,6 @@ +int square(int v) __attribute__ ((const)); + +int square(int v) +{ + return v * v; +} |