[PATCH 40/57][Arm][OBJDUMP] Add support for MVE instructions: vdup, veor, vfma, vfms...
[binutils-gdb.git] / ld / testsuite / ld-size / size-5a.c
blob500678a96d1c76a89f198ac41d5dc8be1a2ba22f
1 #include <stdio.h>
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);
10 int
11 main ()
13 int size;
15 size = bar_size1 ();
16 if (bar[2] == 3 && size == sizeof (bar) && bar_size2 () == size)
17 printf ("OK\n");
19 size = foo_size1 ();
20 if (foo[3] == 4 && size == sizeof (foo) && foo_size2 () == size)
21 printf ("OK\n");
23 return 0;