brintos

brintos / llvm-project-archived public Read only

0
0
Text · 401 B · c00d75f Raw
24 lines · cpp
1// RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s2 3// UNSUPPORTED: android4 5#include <assert.h>6#include <errno.h>7#include <stdio.h>8#include <unistd.h>9 10int main(void) {11  printf("getusershell\n");12 13  setusershell();14  char *fentry = getusershell();15 16  printf("First entry: '%s'\n", fentry);17 18  endusershell();19 20  return 0;21  // CHECK: getusershell22  // CHECK: First entry: '{{.*}}'23}24