stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r592995 - /incubator/stdcxx/trunk/tests/regress/23.vector.stdcxx-611.cpp
Date Thu, 08 Nov 2007 01:53:12 GMT
Author: sebor
Date: Wed Nov  7 17:53:11 2007
New Revision: 592995

URL: http://svn.apache.org/viewvc?rev=592995&view=rev
Log:
2007-11-07  Martin Sebor  <sebor@roguewave.com>

	STDCXX-651
	* 23.vector.stdcxx-611.cpp: Avoided calling the test function
	in a compile-only test.

	STDCXX-652
	* 23.vector.stdcxx-611.cpp: Explicitly initialized a const
	array of objects of user-defined type with no default ctor
	to avoid compiler errors.

Modified:
    incubator/stdcxx/trunk/tests/regress/23.vector.stdcxx-611.cpp

Modified: incubator/stdcxx/trunk/tests/regress/23.vector.stdcxx-611.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/regress/23.vector.stdcxx-611.cpp?rev=592995&r1=592994&r2=592995&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/regress/23.vector.stdcxx-611.cpp (original)
+++ incubator/stdcxx/trunk/tests/regress/23.vector.stdcxx-611.cpp Wed Nov  7 17:53:11 2007
@@ -35,7 +35,7 @@
 
 void test ()
 {
-    const S s [3];
+    const S s [3] = { S (), S (), S () };
 
     std::vector<S> v;
 
@@ -64,11 +64,9 @@
     std::vector<S>().swap (v);
 }
 
-int main (int argc, char**)
-{
-    // this is just a compile test, it is not intended to run
-    if (1 < argc)
-        test ();
 
+int main ()
+{
+    // compile-time only test
     return 0;
 }



Mime
View raw message