OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
20010112-1.c
1
/* Test that putting an initialized variable in a register works. */
2
3
#ifdef __i386__
4
#define REGISTER asm ("eax")
5
#elif defined (__arm__)
6
#define REGISTER asm ("r0")
7
#else
8
/* Put examples for other architectures here. */
9
#define REGISTER
10
#endif
11
12
void f() {
13
register int i REGISTER = 3;
14
}