(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
patchable_function_entry-error-3.c
       1  /* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
       2  /* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */
       3  
       4  void
       5   __attribute__((patchable_function_entry(65536)))
       6  foo1 (void) { /* { dg-warning "'patchable_function_entry' attribute argument '65536' exceeds 65535" } */
       7  }
       8  
       9  void
      10   __attribute__((patchable_function_entry(65536,1)))
      11  foo2 (void) { /* { dg-warning "'patchable_function_entry' attribute argument '65536' exceeds 65535" } */
      12  }
      13  
      14  void
      15   __attribute__((patchable_function_entry(65536,65536)))
      16  foo3 (void) { /* { dg-warning "'patchable_function_entry' attribute argument '65536' exceeds 65535" } */
      17  }