On Thu, Oct 16, 2014 at 12:35:51PM +0400, Yury Gribov wrote: > 2014-10-15 Yury Gribov <y.gri...@samsung.com> > > Backport from mainline > 2014-05-14 Yury Gribov <y.gri...@samsung.com> > > PR sanitizer/61100 > > * Makefile.am (nodist_saninclude_HEADERS): Install > public headers. > * Makefile.in: Regenerate. > > * c-c++-common/asan/asan-interface-1.c: New test. > * lib/asan-dg.exp (asan_include_flags): New function. > (asan_init): Call asan_include_flags to obtain path > to sanitizer headers. > > --- /dev/null > +++ b/gcc/testsuite/c-c++-common/asan/asan-interface-1.c > @@ -0,0 +1,17 @@ > +/* Check that interface headers work. */ > + > +/* { dg-do run { target { *-*-linux* } } } */ > + > +#ifndef __cplusplus > +#define bool unsigned char > +#endif > +
Please #include <stdbool.h> instead. > +#include <sanitizer/asan_interface.h> > + > +int main() { > + char tmp; > + if (__asan_address_is_poisoned((volatile char *)&tmp + 1)) > + return 0; > + return 1; > +} > + Ok with that change, but please wait for the whole series to be approved (applies to all patches fromthe series). Jakub