[llvm-commits] CVS: llvm/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Looping.c

Brian Gaeke gaeke at cs.uiuc.edu
Sat Nov 8 17:17:01 PST 2003


Changes in directory llvm/test/Programs/SingleSource/UnitTests/SetjmpLongjmp:

Looping.c updated: 1.1 -> 1.2

---
Log message:

This benchmark is not guaranteed to terminate unless 'i' is volatile.


---
Diffs of the changes:  (+1 -1)

Index: llvm/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Looping.c
diff -u llvm/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Looping.c:1.1 llvm/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Looping.c:1.2
--- llvm/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Looping.c:1.1	Thu Sep 11 14:06:43 2003
+++ llvm/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Looping.c	Sat Nov  8 17:16:15 2003
@@ -4,7 +4,7 @@
 int main()
 {
   jmp_buf buf;
-  unsigned i = 0;
+  volatile unsigned i = 0;
 
   if (setjmp(buf) < 10) {
     printf("i == %u\n", i);





More information about the llvm-commits mailing list