Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/asan/asan-interface-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Check that interface headers work. */ | |
2 | |
3 /* { dg-do run { target { *-*-linux* } } } */ | |
4 | |
5 #include <sanitizer/asan_interface.h> | |
6 | |
7 int main() { | |
8 char tmp; | |
9 if (__asan_address_is_poisoned((volatile char *)&tmp + 1)) | |
10 return 0; | |
11 return 1; | |
12 } | |
13 |