Mercurial > hg > CbC > CbC_llvm
diff compiler-rt/test/hwasan/TestCases/global.c @ 223:5f17cb93ff66 llvm-original
LLVM13 (2021/7/18)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:43:00 +0900 |
parents | 79ff65ed7e25 |
children | c4bab56944e8 |
line wrap: on
line diff
--- a/compiler-rt/test/hwasan/TestCases/global.c Sun Jul 18 22:10:01 2021 +0900 +++ b/compiler-rt/test/hwasan/TestCases/global.c Sun Jul 18 22:43:00 2021 +0900 @@ -5,12 +5,12 @@ // RUN: not %run %t -1 2>&1 | FileCheck --check-prefixes=CHECK,LSYM %s // RUN: not %env_hwasan_opts=symbolize=0 %run %t -1 2>&1 | FileCheck --check-prefixes=CHECK,LNOSYM %s -// Global aliasing is not implemented on x86. -// XFAIL: x86_64 +// REQUIRES: pointer-tagging int x = 1; int main(int argc, char **argv) { + // CHECK: Cause: global-overflow // RSYM: is located 0 bytes to the right of 4-byte global variable x {{.*}} in {{.*}}global.c.tmp // RNOSYM: is located to the right of a 4-byte global variable in ({{.*}}global.c.tmp+{{.*}}) // LSYM: is located 4 bytes to the left of 4-byte global variable x {{.*}} in {{.*}}global.c.tmp