mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-13 14:47:51 +00:00
Replace NOP with actual operations to test inline.h compilation
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
|
||||
static inline void dummy_func_0(void) {
|
||||
//NOP
|
||||
return 5;
|
||||
}
|
||||
|
||||
inline static void dummy_func_1(void) {
|
||||
//NOP
|
||||
inline static void dummy_func_1(int a) {
|
||||
int a = dummy_func_0();
|
||||
int b = 10;
|
||||
|
||||
return a + b;
|
||||
}
|
||||
|
||||
void inline static dummy_func_2(void) {
|
||||
//NOP
|
||||
void inline static dummy_func_2(int a, char b, float c) {
|
||||
c += 3.14;
|
||||
b -= 32;
|
||||
return a + (int)(b) + c;
|
||||
}
|
||||
|
||||
void dummy_normal_func(int a);
|
||||
|
||||
Reference in New Issue
Block a user