[Assorted-commits] SF.net SVN: assorted: [385] sandbox/trunk/src/cc/conversions.cc
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-02-12 01:22:28
|
Revision: 385 http://assorted.svn.sourceforge.net/assorted/?rev=385&view=rev Author: yangzhang Date: 2008-02-11 17:22:31 -0800 (Mon, 11 Feb 2008) Log Message: ----------- added conversion test Added Paths: ----------- sandbox/trunk/src/cc/conversions.cc Added: sandbox/trunk/src/cc/conversions.cc =================================================================== --- sandbox/trunk/src/cc/conversions.cc (rev 0) +++ sandbox/trunk/src/cc/conversions.cc 2008-02-12 01:22:31 UTC (rev 385) @@ -0,0 +1,15 @@ +#include <iostream> + +using namespace std; + +int +main() +{ + // This doesn't compile. + // int i("321"); + + // This doesn't work as expected; always outputs 1. + bool b("false"); + cout << b << endl; +} + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |