Files
clang-p2996/compiler-rt/test/msan/initgroups.cc
Alexey Samsonov d06aa3dc00 [MSan] Remove explicit -m64 from RUN lines.
Target-specific flags should usually be configured by CMake/lit.

llvm-svn: 230999
2015-03-02 19:34:27 +00:00

12 lines
271 B
C++

// RUN: %clangxx_msan -O0 %s -o %t && %run %t
#include <sys/types.h>
#include <grp.h>
int main(void) {
initgroups("root", 0);
// The above fails unless you are root. Does not matter, MSan false positive
// (which we are testing for) happens anyway.
return 0;
}