2015-07-22 10:36:42 +00:00
|
|
|
#include "script_test_11.h"
|
|
|
|
|
2013-04-15 16:34:12 +00:00
|
|
|
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;
|
2015-07-22 10:36:42 +00:00
|
|
|
if (!ptr_equal(&__foo_start, (char *)&foo))
|
2013-04-15 16:34:12 +00:00
|
|
|
return 2;
|
|
|
|
return 0;
|
|
|
|
}
|