1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-omit-frame-pointer" } */
3 
4 struct foo
5 {
6   int head;
7 } a;
8 
9 int
bar(void)10 bar (void)
11 {
12   return a.head != 0;
13 }
14 
15 /* No need to use a frame pointer.  */
16 /* { dg-final { scan-assembler-not "%\[re\]bp" } } */
17