aboutsummaryrefslogtreecommitdiff
path: root/test/standalone/coff_dwarf/shared_lib.c
blob: 0455a6a0ad3aac5545d7fbaaf89cc5c1aed1ab77 (plain)
1
2
3
4
5
6
#include <stdint.h>

__declspec(dllexport) uint32_t add(uint32_t a, uint32_t b, uintptr_t* addr) {
    *addr = (uintptr_t)&add;
    return a + b;
}