Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / ACE / tests / Bug_3709_Regression_Test.cpp
blobab2166e5099983ea025e41c270ad5715130732e7
1 /**
2 * @file Bug_3709_Regression_Test.cpp
4 * Reproduces the problems reported in bug 3709
5 * http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=3709
6 */
8 #include "test_config.h"
9 #include "ace/ACE.h"
10 #include "ace/OS_NS_stdio.h"
11 #include <vector>
13 using namespace std;
15 template<template<typename U, typename = std::allocator<U> > class container, typename DT>
16 container<DT> initializer(const DT &d)
18 container<DT> t ;
19 t.insert(t.end(), d);
20 return t;
23 int
24 run_main (int, ACE_TCHAR *[])
26 ACE_START_TEST (ACE_TEXT ("Bug_3709_Regression_Test"));
28 vector<int> v = initializer<vector>(5);
29 v.clear ();
31 ACE_END_TEST;
33 return 0;