about summary refs log tree commit diff homepage
path: root/test/Runtime/Uclibc/2008-03-04-libc-atexit-uses-dso-handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Runtime/Uclibc/2008-03-04-libc-atexit-uses-dso-handle.c')
-rw-r--r--test/Runtime/Uclibc/2008-03-04-libc-atexit-uses-dso-handle.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Runtime/Uclibc/2008-03-04-libc-atexit-uses-dso-handle.c b/test/Runtime/Uclibc/2008-03-04-libc-atexit-uses-dso-handle.c
new file mode 100644
index 00000000..686bec19
--- /dev/null
+++ b/test/Runtime/Uclibc/2008-03-04-libc-atexit-uses-dso-handle.c
@@ -0,0 +1,12 @@
+// RUN: %llvmgcc %s -emit-llvm -O0 -c -o %t1.bc
+// RUN: %klee --exit-on-error --libc=uclibc %t1.bc
+
+// just make sure atexit works ok
+
+void boo() {
+}
+
+int main() {
+  atexit(boo);
+  return 0;
+}