mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
17 lines
361 B
C
17 lines
361 B
C
|
static unsigned int buffer1[256] __attribute((used));
|
||
|
static unsigned int buffer2[256] __attribute((used)) = { 1 };
|
||
|
|
||
|
unsigned int foo __attribute__((section(".foo")));
|
||
|
extern char __foo_start;
|
||
|
extern char __foo_end;
|
||
|
|
||
|
int
|
||
|
main (void)
|
||
|
{
|
||
|
if (&__foo_end - &__foo_start != sizeof(foo))
|
||
|
return 1;
|
||
|
if (&__foo_start != (char *)&foo)
|
||
|
return 2;
|
||
|
return 0;
|
||
|
}
|