about summary refs log tree commit diff homepage
path: root/test/Runtime/Uclibc/Environ.c
blob: 762082786e72cea2b59e1b47f93d4f227e9fda0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %llvmgcc %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;
}