[PATCH 7/57][Arm][GAS] Add support for MVE instructions: vstr/vldr
[binutils-gdb.git] / gdb / testsuite / gdb.base / reread2.c
blobf45f29e3c0e12d28aa8154c1602e3160d427c3b8
1 /* pr 13484 */
3 #include <stdio.h>
5 int x;
7 void foo()
9 x++;
10 printf("This is foo\n");
13 int main()
15 foo();
16 return 0;
19 /* Ensure the new file will have more sections. It may exploit code not
20 updating its SECTION_COUNT on reread_symbols. */
22 #ifndef NO_SECTIONS
23 # define VAR0(n) __attribute__ ((section ("sect" #n))) int var##n;
24 # define VAR1(n) VAR0 (n ## 0) VAR0(n ## 1) VAR0(n ## 2) VAR0(n ## 3)
25 # define VAR2(n) VAR1 (n ## 0) VAR1(n ## 1) VAR1(n ## 2) VAR1(n ## 3)
26 # define VAR3(n) VAR2 (n ## 0) VAR2(n ## 1) VAR2(n ## 2) VAR2(n ## 3)
27 VAR3 (0)
28 #endif