brintos

brintos / llvm-project-archived public Read only

0
0
Text · 331 B · 974b1cb Raw
13 lines · cpp
1// RUN: %clangxx_msan -O0 %s -o %t && %run %t2 3#include <sys/types.h>4#include <grp.h>5#include <unistd.h>  // FreeBSD declares initgroups() here.6 7int main(void) {8  initgroups("root", 0);9  // The above fails unless you are root. Does not matter, MSan false positive10  // (which we are testing for) happens anyway.11  return 0;12}13