Add a few more interesting addresses to the addresses test.

pull/92/head
Dan Gohman 5 years ago
parent 9b2390ca3d
commit 5e71a54257

@ -1,5 +1,7 @@
#include <stdio.h>
#include <limits.h>
#include <errno.h>
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;
}

Loading…
Cancel
Save