summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/patchable_function_entry-error-3.c
blob: 4490e5c15caf20ebde6565447a15c7de73ed9e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
/* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */

void
 __attribute__((patchable_function_entry(65536)))
foo1 (void) { /* { dg-warning "'patchable_function_entry' attribute argument '65536' is out of range" } */
}

void
 __attribute__((patchable_function_entry(65536,1)))
foo2 (void) { /* { dg-warning "'patchable_function_entry' attribute argument '65536' is out of range" } */
}

void
 __attribute__((patchable_function_entry(65536,65536)))
foo3 (void) { /* { dg-warning "'patchable_function_entry' attribute argument '65536' is out of range" } */
}