We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f5a7f1 commit 6f79545Copy full SHA for 6f79545
compiler-rt/test/tysan/struct-offset-different-base.cpp
@@ -1,5 +1,5 @@
1
// RUN: %clangxx_tysan -O0 %s -o %t && %run %t >%t.out 2>&1
2
-// RUN: FileCheck %s < %t.out
+// RUN: FileCheck %s --implicit-check-not ERROR < %t.out
3
4
// Modified reproducer from https://github.com/llvm/llvm-project/issues/105960
5
@@ -11,7 +11,7 @@ struct inner {
11
};
12
13
void init_inner(inner *iPtr) {
14
- iPtr->i = 0;
+ iPtr->i = 200;
15
}
16
17
struct outer {
@@ -25,9 +25,9 @@ int main(void) {
25
init_inner(&l->foo);
26
27
int access_offsets_with_different_base = l->foo.i;
28
- printf("%d\n", access_offsets_with_different_base);
+ printf("Accessed value is %d\n", access_offsets_with_different_base);
29
30
return 0;
31
32
33
-// CHECK-NOT: ERROR: TypeSanitizer: type-aliasing-violation
+// CHECK: Accessed value is 200
0 commit comments