We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b2390c commit 5e71a54Copy full SHA for 5e71a54
tests/compile-only/addresses.c
@@ -1,5 +1,7 @@
1
#include <stdio.h>
2
#include <limits.h>
3
+#include <errno.h>
4
+extern char **environ;
5
6
extern void __dso_handle;
7
#if !defined(__clang_major__) || __clang_major__ >= 10
@@ -19,5 +21,7 @@ int main(int argc, char *argv[]) {
19
21
printf("__builtin_frame_address(0)=%p\n", __builtin_frame_address(0));
20
22
printf("__builtin_alloca(0)=%p\n", __builtin_alloca(0));
23
printf("__builtin_wasm_memory_size(0)=%p\n", (void *)(__builtin_wasm_memory_size(0) * PAGE_SIZE));
24
+ printf("&errno=%p\n", (void *)&errno);
25
+ printf("&environ=%p\n", (void *)&environ);
26
return 0;
27
}
0 commit comments