Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / Posix / getusershell.cpp
blobc00d75f112112ac097a5e63d87a753b681a6ab2d
1 // RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s
3 // UNSUPPORTED: android
5 #include <assert.h>
6 #include <errno.h>
7 #include <stdio.h>
8 #include <unistd.h>
10 int main(void) {
11 printf("getusershell\n");
13 setusershell();
14 char *fentry = getusershell();
16 printf("First entry: '%s'\n", fentry);
18 endusershell();
20 return 0;
21 // CHECK: getusershell
22 // CHECK: First entry: '{{.*}}'