Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / NetBSD / uid_from_user.cpp
blob4cc1366aad4b0ffcf6344293f4343c7ec8545722
1 // RUN: %clangxx -O0 -g %s -o %t && %run %t
3 #include <pwd.h>
4 #include <stdlib.h>
6 int main(void) {
7 uid_t nobody;
9 if (uid_from_user("nobody", &nobody) == -1)
10 exit(1);
12 if (nobody)
13 exit(0);
15 return 0;