Files
clang-p2996/compiler-rt/test/msan/Linux/tcgetattr.cc
Daniel Sanders 93c0f382b4 [mips][msan] Fix all the XPASSes following r278793 and r278795
All msan tests are now passing for mipsel and mips64el except for
allocator_mapping.cc which is marked unsupported.

llvm-svn: 279048
2016-08-18 10:50:46 +00:00

22 lines
363 B
C++

// RUN: %clangxx_msan -O0 %s -o %t && %run %t %p
#include <assert.h>
#include <glob.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
int fd = getpt();
assert(fd >= 0);
struct termios t;
int res = tcgetattr(fd, &t);
assert(!res);
if (t.c_iflag == 0)
exit(0);
return 0;
}