summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/msan/textdomain.cpp
blob: 478b0993f8371070448ee609ec4fe8f4fe8e62c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
// textdomain() is not a part of libc on FreeBSD and NetBSD.
// UNSUPPORTED: netbsd, freebsd

#include <libintl.h>
#include <stdio.h>

int main() {
  const char *td = textdomain("abcd");
  if (td[0] == 0) {
    printf("Try read"); 
  }
  return 0;
}
OpenPOWER on IntegriCloud