1 /* Test to verify the handling of attribute access (none).
3 { dg-options "-O -Wall -ftrack-macro-expansion=0" } */
5 int __attribute__ ((access (none
, 1)))
8 void nowarn_fnone_pv1 (void)
15 int __attribute__ ((access (none
, 1)))
16 fnone_pcv1 (const void*);
18 void nowarn_fnone_pcv1 (void)
25 int __attribute__ ((access (none
, 1, 2)))
26 fnone_pcv1_2 (const void*, int); // { dg-message "in a call to function 'fnone_pcv1_2' declared with attribute 'access \\\(none, 1, 2\\\)'" "note" }
28 void nowarn_fnone_pcv1_2 (void)
34 void warn_fnone_pcv1_2 (void)
37 fnone_pcv1_2 (a
, 4); // { dg-warning "expecting 4 bytes in a region of size 3" }