• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 static unsigned int buffer1[256] __attribute((used));
2 static unsigned int buffer2[256] __attribute((used)) = { 1 };
3 
4 unsigned int foo __attribute__((section(".foo")));
5 extern char __foo_start;
6 extern char __foo_end;
7 
8 int
main(void)9 main (void)
10 {
11   if (&__foo_end - &__foo_start != sizeof(foo))
12     return 1;
13   if (&__foo_start != (char *)&foo)
14     return 2;
15   return 0;
16 }
17