]> git.proxmox.com Git - rustc.git/blame - src/compiler-rt/test/msan/initgroups.cc
Imported Upstream version 1.0.0~0alpha
[rustc.git] / src / compiler-rt / test / msan / initgroups.cc
CommitLineData
1a4d82fc
JJ
1// RUN: %clangxx_msan -m64 -O0 %s -o %t && %run %t
2
3#include <sys/types.h>
4#include <grp.h>
5
6int main(void) {
7 initgroups("root", 0);
8 // The above fails unless you are root. Does not matter, MSan false positive
9 // (which we are testing for) happens anyway.
10 return 0;
11}