You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2007/11/08 02:53:12 UTC

svn commit: r592995 - /incubator/stdcxx/trunk/tests/regress/23.vector.stdcxx-611.cpp

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  <se...@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;
 }