Files
clang-p2996/compiler-rt/test/msan/textdomain.cpp
Paul Robinson 02012a78b8 [msan] Convert tests to check 'target=...'
Part of the project to eliminate special handling for triples in lit
expressions.
2022-12-19 06:44:42 -08:00

15 lines
315 B
C++

// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
// textdomain() is not a part of libc on FreeBSD and NetBSD.
// UNSUPPORTED: target={{.*(netbsd|freebsd).*}}
#include <libintl.h>
#include <stdio.h>
int main() {
const char *td = textdomain("abcd");
if (td[0] == 0) {
printf("Try read");
}
return 0;
}