[llvm-commits] [test-suite] r105999 - in /test-suite/trunk/SingleSource/UnitTests/Threads: tls.c tls.reference_output

Daniel Dunbar daniel at zuster.org
Tue Jun 15 09:23:39 PDT 2010


Author: ddunbar
Date: Tue Jun 15 11:23:39 2010
New Revision: 105999

URL: http://llvm.org/viewvc/llvm-project?rev=105999&view=rev
Log:
Add SingleSource/UnitTests/Threads/tls reference output.

Added:
    test-suite/trunk/SingleSource/UnitTests/Threads/tls.reference_output
Modified:
    test-suite/trunk/SingleSource/UnitTests/Threads/tls.c

Modified: test-suite/trunk/SingleSource/UnitTests/Threads/tls.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Threads/tls.c?rev=105999&r1=105998&r2=105999&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Threads/tls.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/Threads/tls.c Tue Jun 15 11:23:39 2010
@@ -13,9 +13,9 @@
   intptr_t ret;
   pthread_create(&t, NULL, f, NULL);
   pthread_join(t, (void **) &ret);
-  printf("Thread 1: %" PRIdPTR "\n",ret);
+  printf("Thread 1: %d\n", (int) ret);
   pthread_create(&t, NULL, f, NULL);
   pthread_join(t, (void **) &ret);
-  printf("Thread 2: %" PRIdPTR "\n",ret);
+  printf("Thread 2: %d\n", (int) ret);
   return 0;
 }

Added: test-suite/trunk/SingleSource/UnitTests/Threads/tls.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Threads/tls.reference_output?rev=105999&view=auto
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Threads/tls.reference_output (added)
+++ test-suite/trunk/SingleSource/UnitTests/Threads/tls.reference_output Tue Jun 15 11:23:39 2010
@@ -0,0 +1,3 @@
+Thread 1: 2
+Thread 2: 2
+exit 0





More information about the llvm-commits mailing list