1 // RUN: %clangxx_msan -fno-sanitize-memory-param-retval -fsanitize-memory-track-origins=2 -O3 %s -o %t && \
2 // RUN: MSAN_OPTIONS=store_context_size=1 not %run %t 2>&1 | FileCheck %s
4 // Test that stack trace for the intermediate store is not empty.
6 // CHECK: MemorySanitizer: use-of-uninitialized-value
7 // CHECK: #0 {{.*}} in main
9 // CHECK: Uninitialized value was stored to memory at
10 // CHECK: #0 {{.*}} in fn_g
13 // CHECK: Uninitialized value was created by an allocation of 'z' in the stack frame
14 // CHECK: #0 {{.*}} in main
20 __attribute__((noinline
))
25 __attribute__((noinline
))
30 int main(int argc
, char *argv
[]) {