about summary refs log tree commit diff homepage
path: root/test/Runtime/Uclibc/Environ.c
blob: df0ba5b2907e4ebdbb0b36464ab724ce51007bf4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang %s -emit-llvm -g -c -o %t1.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out --libc=uclibc --exit-on-error %t1.bc

#include <assert.h>
#include <stdlib.h>
#include <stdio.h>

int main() {
  printf("HOME: %s\n", getenv("HOME"));
  assert(getenv("HOME") != 0);
  return 0;
}