| Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame^] | 1 | // RUN: %clangxx_msan -m64 -O0 %s -o %t && %run %t | 
| 2 | |||||
| 3 | #include <sys/types.h> | ||||
| 4 | #include <grp.h> | ||||
| 5 | |||||
| 6 | int 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 | } | ||||