about summary refs log tree commit diff homepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Feature/TargetMismatch.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Feature/TargetMismatch.c b/test/Feature/TargetMismatch.c
new file mode 100644
index 00000000..aae7fda6
--- /dev/null
+++ b/test/Feature/TargetMismatch.c
@@ -0,0 +1,9 @@
+// REQUIRES: not-darwin
+// RUN: %clang %s -m32 -emit-llvm %O0opt -c -o %t1.bc
+// RUN: rm -rf %t.klee-out
+// RUN: %klee --output-dir=%t.klee-out --exit-on-error > %t2.out 2>&1 || true
+// RUN: FileCheck %s -input-file=%t2.out
+
+// CHECK: KLEE: WARNING: Module and host target triples do not match
+// CHECK-NEXT: This may cause unexpected crashes or assertion violations.
+int main(void) {}