mirror of
https://github.com/ThrowTheSwitch/CMock
synced 2025-03-11 16:41:12 -04:00
31 lines
668 B
C
31 lines
668 B
C
/* =========================================================================
|
|
CMock - Automatic Mock Generation for C
|
|
ThrowTheSwitch.org
|
|
Copyright (c) 2007-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
|
SPDX-License-Identifier: MIT
|
|
========================================================================= */
|
|
|
|
|
|
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
|
|
}
|