aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr91441.c
blob: 4f7a8fbec5e92e204512153720d294f2d8919a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR target/91441 */
/* { dg-do compile  } */
/* { dg-require-effective-target no_fsanitize_address }*/
/* { dg-options "--param asan-stack=1 -fsanitize=kernel-address" } */

int *bar(int *);
int *f( int a)
{
  return bar(&a);
}
/* { dg-warning ".'-fsanitize=kernel-address' with stack protection is not supported without '-fasan-shadow-offset=' for this target" "" { target *-*-* } 0 } */