repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
modula2 testsuite: new libc unit test
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arc
/
cmem-ld.inc
blob
7b51bb39a1749cfcb779d1cd8cbec2a1b1293dd0
1
2
struct foo_type
3
{
4
unsigned int a;
5
unsigned short b;
6
unsigned char c;
7
};
8
9
struct foo_type foo __attribute__ ((section (".cmem")));
10
11
unsigned int
12
f ()
13
{
14
unsigned int tmp = foo.a + foo.b + foo.c;
15
return tmp;
16
}