make obstack object allocators more type-safe
[deliverable/binutils-gdb.git] / ld / testsuite / ld-size / size-5a.c
1 #include <stdio.h>
2
3 __thread char bar[10];
4 __thread char foo[20] = { 1 } ;
5 extern int bar_size1 (void);
6 extern int bar_size2 (void);
7 extern int foo_size1 (void);
8 extern int foo_size2 (void);
9
10 int
11 main ()
12 {
13 int size;
14
15 size = bar_size1 ();
16 if (bar[2] == 3 && size == sizeof (bar) && bar_size2 () == size)
17 printf ("OK\n");
18
19 size = foo_size1 ();
20 if (foo[3] == 4 && size == sizeof (foo) && foo_size2 () == size)
21 printf ("OK\n");
22
23 return 0;
24 }
This page took 0.030365 seconds and 4 git commands to generate.