aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20010112-1.c
blob: 69bbe169e3101bb9cc2a31e0455fd9275e3f7a7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Test that putting an initialized variable in a register works. */

#ifdef __i386__
#define REGISTER asm ("eax")
#elif defined (__arm__)
#define REGISTER asm ("r0")
#else
/* Put examples for other architectures here. */
#define REGISTER
#endif

void f() {
  register int i REGISTER = 3;
}