aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/attr-access-4.c
blob: 7a2870a0ee43f94b1827b02352a79fc9a68634ce (plain)
1
2
3
4
5
6
7
8
/* PR middle-end/97861 - ICE on an invalid redeclaration of a function
   with attribute access
   { dg-do compile }
   { dg-options "-Wall" } */

__attribute__ ((access (read_only, 2)))
void f (int, int*);
void f (int a) { }  // { dg-error "conflicting types for 'f'" }