Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/20010112-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 } |