Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / ACE / tests / Compiler_Features_27_Test.cpp
blobd441caa331e22d67e603e946c91290e7581dd768
1 /**
2 * This program checks if the compiler doesn't have a certain bug
3 * that we encountered when testing C++11 features
4 */
6 #include "test_config.h"
8 #include <string>
10 class Foo
12 public:
13 Foo () = default;
16 void operator <<= (Foo&, std::string &&)
20 int
21 run_main (int, ACE_TCHAR *[])
23 ACE_START_TEST (ACE_TEXT("Compiler_Features_27_Test"));
25 Foo any;
26 any <<= std::move("abc");
28 ACE_END_TEST;
30 return 0;