comparison compiler-rt/test/msan/unaligned_read_origin.cpp @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 1d019706d866
children
comparison
equal deleted inserted replaced
232:70dce7da266c 236:c4bab56944e8
9 int x; 9 int x;
10 int *volatile p = &x; 10 int *volatile p = &x;
11 return __sanitizer_unaligned_load32(p); 11 return __sanitizer_unaligned_load32(p);
12 // CHECK: WARNING: MemorySanitizer: use-of-uninitialized-value 12 // CHECK: WARNING: MemorySanitizer: use-of-uninitialized-value
13 // CHECK: {{#0 0x.* in main .*unaligned_read_origin.cpp:}}[[@LINE-2]] 13 // CHECK: {{#0 0x.* in main .*unaligned_read_origin.cpp:}}[[@LINE-2]]
14 // CHECK: Uninitialized value was created by an allocation of 'x' in the stack frame of function 'main' 14 // CHECK: Uninitialized value was created by an allocation of 'x' in the stack frame
15 // CHECK: {{#0 0x.* in main .*unaligned_read_origin.cpp:}}[[@LINE-7]] 15 // CHECK: {{#0 0x.* in main .*unaligned_read_origin.cpp:}}[[@LINE-6]]
16 } 16 }