• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * ELF EXEC files must use -Wl,--ctf-variables -Bdynimic options
3  * to export an ABI and store CTF symbols information.
4  *
5  * ctf-gcc -gctf -Wl,--ctf-variables -Bdynamic test0.c -o test0
6  */
7 
8 #include <stdio.h>
9 
10 char* test_pointer = NULL;
11 int test_array[10] = {0};
12 volatile short test_volatile = 1;
13 float test_float = 0.0;
14 
15 struct {
16   unsigned int status0 : 1;
17   unsigned int status1 : 1;
18 } status;
19 
20 
21 struct S
22 {
23   int m0;
24 };
25 
26 const struct S test_const;
27 long* restrict test_restrict;
28 
29 int
foo_1(struct S * s)30 foo_1(struct S* s)
31 {
32   return s->m0;
33 }
34 
main()35 int main()
36 {
37 
38 }
39