aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr96335.c
blob: a6203f38a03a536435244efcf5b4b911531fc6f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR middle-end/96335 */
/* { dg-do compile } */
/* { dg-options "-std=gnu17 -O2" } */

void bar (int, void *) __attribute__((__access__(__read_only__, 2)));

void
foo (void *x)
{
  void (*fn) () = bar;
  fn (0, x);
}