diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2014-11-06 22:49:13 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2014-11-06 22:49:13 +0000 | 
| commit | 8ef50bf3d1c287b5013c3168de77a462dfce3495 (patch) | |
| tree | 3467f3372c1195b1546172d89af2205a50b1866d /lib/msan/lit_tests/stack-origin.cc | |
| parent | 11023dc647fd8f41418da90d59db138400d0f334 (diff) | |
Notes
Diffstat (limited to 'lib/msan/lit_tests/stack-origin.cc')
| -rw-r--r-- | lib/msan/lit_tests/stack-origin.cc | 9 | 
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/msan/lit_tests/stack-origin.cc b/lib/msan/lit_tests/stack-origin.cc index 90f527309224..b0b05d9658bf 100644 --- a/lib/msan/lit_tests/stack-origin.cc +++ b/lib/msan/lit_tests/stack-origin.cc @@ -20,13 +20,12 @@  int main(int argc, char **argv) {    int x;    int *volatile p = &x; -  if (*p) -    exit(0); -  // CHECK: WARNING: Use of uninitialized value -  // CHECK: {{#0 0x.* in main .*stack-origin.cc:}}[[@LINE-3]] +  return *p; +  // CHECK: WARNING: MemorySanitizer: use-of-uninitialized-value +  // CHECK: {{#0 0x.* in main .*stack-origin.cc:}}[[@LINE-2]]    // CHECK-ORIGINS: Uninitialized value was created by an allocation of 'x' in the stack frame of function 'main' +  // CHECK-ORIGINS: {{#0 0x.* in main .*stack-origin.cc:}}[[@LINE-8]]    // CHECK: SUMMARY: MemorySanitizer: use-of-uninitialized-value {{.*stack-origin.cc:.* main}} -  return 0;  }  | 
