aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr65588.c
blob: 77f571239c6cb3f632ef0b0af9f5c71a794d7e28 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do link } */
/* { dg-require-effective-target lto } */
/* { dg-options "-O2 -flto" } */
#ifdef __x86_64__
register volatile int a __asm__("%rsp");
#else
register volatile int a __asm__("%esp");
#endif
__attribute__ ((used))
int t () { a = 0; }
int main () { a = 0; }