aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/hwasan/macro-definition.c
blob: 5f654f557821f2dbe060e9976fbca7e5770f274c (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
extern void testfunc(int);
int foo()
{
#ifndef __SANITIZE_HWADDRESS__
  testfunc(1);
#endif
  return 1;
}

/* { dg-final { scan-assembler-not "testfunc" } } */