about summary refs log tree commit diff homepage
path: root/test/Feature/IndirectCallToBuiltin.c
blob: 591a56019b713eca225a29fcfde1913d5c5bff1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %llvmgcc %s -emit-llvm -g -c -o %t1.bc
// RUN: %klee %t1.bc

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

int main() {
  void *(*allocator)(size_t) = malloc;
  int *mem = allocator(10);

  printf("mem: %p\n", mem);
  printf("mem[0]: %d\n", mem[0]);

  return 0;
}