File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 2
2
#include <limits.h>
3
3
4
4
extern void __dso_handle ;
5
+ #if !defined(__clang_major__ ) || __clang_major__ >= 10
5
6
extern void __data_end ;
6
7
extern void __global_base ;
7
8
extern void __heap_base ;
9
+ #endif
8
10
9
11
int main (int argc , char * argv []) {
10
12
printf ("NULL=%p\n" , NULL );
11
13
printf ("__dso_handle=%p\n" , & __dso_handle );
14
+ #if !defined(__clang_major__ ) || __clang_major__ >= 10
12
15
printf ("__data_end=%p\n" , & __data_end );
13
16
printf ("__global_base=%p\n" , & __global_base );
14
17
printf ("__heap_base=%p\n" , & __heap_base );
18
+ #endif
15
19
printf ("__builtin_frame_address(0)=%p\n" , __builtin_frame_address (0 ));
16
20
printf ("__builtin_alloca(0)=%p\n" , __builtin_alloca (0 ));
17
21
printf ("__builtin_wasm_memory_size(0)=%p\n" , (void * )(__builtin_wasm_memory_size (0 ) * PAGE_SIZE ));
You can’t perform that action at this time.
0 commit comments