libdpf/thirdparty/hedley/test/inline.c
Ryan Henry e4e666f459 Initial import of libdpf.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 14:08:32 -06:00

23 lines
385 B
C

#include "../hedley.h"
HEDLEY_INLINE
static int test_inline(int a, int b) {
return a * b;
}
HEDLEY_ALWAYS_INLINE
static int test_always_inline(int a, int b) {
return a * b;
}
HEDLEY_NEVER_INLINE
static int test_never_inline(int a, int b) {
return a * b;
}
int main(void) {
int a = test_always_inline(1, 2);
int b = test_never_inline(3, 4);
return test_inline(a, b);
}