1  /* Check if avx target functions can inline lower target functions.   */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O0 -mno-avx -mno-sse3" } */
       4  
       5  __attribute__((always_inline,target("sse3")))
       6  inline int callee ()
       7  {
       8    return 0;
       9  }
      10  
      11  __attribute__((target("avx")))
      12  inline int caller ()
      13  {
      14    return callee ();
      15  }
      16  
      17  int main ()
      18  {
      19    return caller ();
      20  }