]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/msan/select.cc
7b8c34785c230427e4410fdd50e9b69191c0b7f4
1 // RUN: %clangxx_msan -O0 %s -o %t && not %run %t >%t.out 2>&1
2 // RUN: FileCheck %s < %t.out
3 // RUN: %clangxx_msan -O1 %s -o %t && not %run %t >%t.out 2>&1
4 // RUN: FileCheck %s < %t.out
5 // RUN: %clangxx_msan -O2 %s -o %t && not %run %t >%t.out 2>&1
6 // RUN: FileCheck %s < %t.out
7 // RUN: %clangxx_msan -O3 %s -o %t && not %run %t >%t.out 2>&1
8 // RUN: FileCheck %s < %t.out
11 int main(int argc
, char **argv
) {
17 // CHECK: WARNING: MemorySanitizer: use-of-uninitialized-value
18 // CHECK: {{#0 0x.* in main .*select.cc:}}[[@LINE-3]]
20 // CHECK: SUMMARY: MemorySanitizer: use-of-uninitialized-value {{.*select.cc:.* main}}