[compiler-rt] r215941 - Add regression test for PR15823

Alexey Samsonov vonosmas at gmail.com
Mon Aug 18 15:11:14 PDT 2014


Author: samsonov
Date: Mon Aug 18 17:11:14 2014
New Revision: 215941

URL: http://llvm.org/viewvc/llvm-project?rev=215941&view=rev
Log:
Add regression test for PR15823

Added:
    compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/clock_gettime.c

Added: compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/clock_gettime.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/clock_gettime.c?rev=215941&view=auto
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/clock_gettime.c (added)
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/clock_gettime.c Mon Aug 18 17:11:14 2014
@@ -0,0 +1,11 @@
+// RUN: %clang %s -Wl,-as-needed -o %t && %run %t
+// Regression test for PR15823
+// (http://llvm.org/bugs/show_bug.cgi?id=15823).
+#include <stdio.h>
+#include <time.h>
+
+int main() {
+  struct timespec ts;
+  clock_gettime(CLOCK_REALTIME, &ts);
+  return 0;
+}





More information about the llvm-commits mailing list