about summary refs log tree commit diff homepage
path: root/test/Feature/IndirectCallToExternal.c
blob: 03447c7ddcba6b1f059f3f3e4e57a6fb96a9bffa (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)(char*,char*) = strcmp;

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

  return 0;
}