Replace NOP with actual operations to test inline.h compilation

This commit is contained in:
laurens
2019-11-11 13:22:00 +01:00
parent 9908930bc5
commit 5650b79dcd
+10 -5
View File
@@ -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);