Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / compiler-rt / test / msan / Linux / prctl.cpp
blob1af4000de8a0ce7bc166597909533b21d207f8c2
1 // RUN: %clangxx_msan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
3 #include <linux/prctl.h>
4 #include <sys/prctl.h>
6 int main(void) {
7 prctl(PR_SET_NAME, "tname");
8 char name[16];
9 prctl(PR_GET_NAME, name);
11 if (name[0] == 'A') {
12 return 0;
14 if (name[5] != '\0') {
15 return 0;
17 if (name[6] != '\0') {
18 return 0;
20 // CHECK: SUMMARY: MemorySanitizer: use-of-uninitialized-value {{.*prctl.cpp}}:[[@LINE-3]]
22 return 0;