Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 1 | // RUN: %clangxx_msan -std=c++11 -O0 %s -o %t && %run %t |
2 | |||||
3 | #include <sanitizer/msan_interface.h> | ||||
4 | #include <stdio.h> | ||||
5 | #include <string.h> | ||||
6 | |||||
7 | int main(void) { | ||||
8 | unsigned char s[L_ctermid + 1]; | ||||
9 | char *res = ctermid((char *)s); | ||||
10 | if (res) | ||||
11 | printf("%zd\n", strlen(res)); | ||||
12 | return 0; | ||||
13 | } |