Merge branches/gcc-4_9-branch rev 225109.
[official-gcc.git] / gcc-4_9-branch / gcc / testsuite / g++.dg / abi / aarch64_guard1.C
blobe78f93cd27b89a6b6542c945dfec684fc590ff01
1 // Check that the initialization guard variable is an 8-byte aligned,
2 // 8-byte doubleword and that only the least significant bit is used
3 // for initialization guard variables.
4 // { dg-do compile { target aarch64*-*-* } }
5 // { dg-options "-O -fdump-tree-original -fno-section-anchors" }
7 int bar();
9 int *foo ()
11   static int x = bar ();
12   return &x;
15 // { dg-final { scan-assembler _ZGVZ3foovE1x,8,8 } }
16 // { dg-final { cleanup-tree-dump "original" } }