1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fno-omit-frame-pointer" } */
       3  
       4  int
       5  #ifndef __x86_64__
       6  __attribute__((regparm(3)))
       7  #endif
       8  foo (int i)
       9  {
      10    return i;
      11  }
      12  
      13  /* No need to use a frame pointer.  */
      14  /* { dg-final { scan-assembler-not "%\[re\]bp" } } */