about summary refs log tree commit diff homepage
path: root/test/Feature/IndirectCallToExternal.c
blob: 2d4943dc76cb3314dc41feef99431f0adc9cff1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang %s -emit-llvm -g -c -o %t1.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out %t1.bc

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

int main() {
  int (*scmp)(const char *, const char *) = strcmp;

  assert(scmp("hello","hi") < 0);

  return 0;
}