Revision: 243
http://assorted.svn.sourceforge.net/assorted/?rev=243&view=rev
Author: yangzhang
Date: 2008-01-19 16:17:56 -0800 (Sat, 19 Jan 2008)
Log Message:
-----------
signed
Modified Paths:
--------------
sandbox/trunk/src/c/signed.c
Modified: sandbox/trunk/src/c/signed.c
===================================================================
--- sandbox/trunk/src/c/signed.c 2008-01-20 00:17:21 UTC (rev 242)
+++ sandbox/trunk/src/c/signed.c 2008-01-20 00:17:56 UTC (rev 243)
@@ -1,8 +1,22 @@
-// vim:et:sw=2:ts=2
+#include <inttypes.h>
#include <stdio.h>
+
int main() {
- size_t len = 0;
- int i;
- for (i = 0; i < len; i++) printf("hello\n");
+ {
+ size_t len = 0;
+ int i;
+ // nothing is printed
+ for (i = 0; i < len; i++) printf("hello\n");
+ }
+
+ {
+ int i = 1;
+ uint32_t j = 1;
+ if (!(i || j)) printf("i || j == 0\n");
+ else printf("i || j != 0\n"); // this is printed
+ }
+
return 0;
}
+
+// vim:et:sw=2:ts=2
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|