diff options
Diffstat (limited to 'FreeRTOS-Plus/Test/CMock/test/system/test_compilation/inline.h')
-rw-r--r-- | FreeRTOS-Plus/Test/CMock/test/system/test_compilation/inline.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/FreeRTOS-Plus/Test/CMock/test/system/test_compilation/inline.h b/FreeRTOS-Plus/Test/CMock/test/system/test_compilation/inline.h new file mode 100644 index 000000000..06e33c184 --- /dev/null +++ b/FreeRTOS-Plus/Test/CMock/test/system/test_compilation/inline.h @@ -0,0 +1,23 @@ + +static inline int dummy_func_0(void) { + return 5; +} + +inline static int dummy_func_1(int a) { + int a = dummy_func_0(); + int b = 10; + + return a + b; +} + +int inline static dummy_func_2(int a, char b, float c) { + c += 3.14; + b -= 32; + return a + (int)(b) + (int)c; +} + +void dummy_normal_func(int a); + +inline void dummy_func_3(void) { + //NOP +} |