diff --git a/tests/compile-only/addresses.c b/tests/compile-only/addresses.c index 1fb0da7..6511ccd 100644 --- a/tests/compile-only/addresses.c +++ b/tests/compile-only/addresses.c @@ -1,5 +1,7 @@ #include #include +#include +extern char **environ; extern void __dso_handle; #if !defined(__clang_major__) || __clang_major__ >= 10 @@ -19,5 +21,7 @@ int main(int argc, char *argv[]) { printf("__builtin_frame_address(0)=%p\n", __builtin_frame_address(0)); printf("__builtin_alloca(0)=%p\n", __builtin_alloca(0)); printf("__builtin_wasm_memory_size(0)=%p\n", (void *)(__builtin_wasm_memory_size(0) * PAGE_SIZE)); + printf("&errno=%p\n", (void *)&errno); + printf("&environ=%p\n", (void *)&environ); return 0; }