aboutsummaryrefslogtreecommitdiff
path: root/test/msan/textdomain.cc
blob: 760debd68c33dfebd76caf930779122549eeb817 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t

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

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