Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/asan/no-redundant-odr-indicators-1.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-skip-if "" { *-*-* } { "*" } { "-O0" } } */ /* Local variables should not have odr indicators. */ static int a = 2; /* Thread local variables should not have odr indicators. */ __thread int b = 3; /* Externally visible variables should have odr indicators. */ int c = 1; int main () { return 0; } /* { dg-final { scan-assembler-not "odr_asan\[\.\$\]a" } } */ /* { dg-final { scan-assembler-not "odr_asan\[\.\$\]b" } } */ /* { dg-final { scan-assembler "odr_asan\[\.\$\]c" } } */