2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr65588.c
blob77f571239c6cb3f632ef0b0af9f5c71a794d7e28
1 /* { dg-do link } */
2 /* { dg-require-effective-target lto } */
3 /* { dg-options "-O2 -flto" } */
4 #ifdef __x86_64__
5 register volatile int a __asm__("%rsp");
6 #else
7 register volatile int a __asm__("%esp");
8 #endif
9 __attribute__ ((used))
10 int t () { a = 0; }
11 int main () { a = 0; }