about summary refs log tree commit diff homepage
path: root/test/Feature/CallToUndefinedExternal.cpp
blob: 26e8fc551910355dc9186e221a77aa49def4a0e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %llvmgxx %s -emit-llvm -g -c -o %t1.bc
// RUN: %klee %t1.bc 2>&1 | FileCheck %s
// RUN: test -f %T/klee-last/test000001.external.err

extern "C" void poof(void);

int main() {
  // CHECK: failed external call: poof
  poof();

  return 0;
}