minimal.cc: Minor tweaks to match narrow char version.
authorJonathan Wakely <jwakely@redhat.com>
Fri, 2 Oct 2015 22:18:06 +0000 (23:18 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 2 Oct 2015 22:18:06 +0000 (23:18 +0100)
* testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
Minor tweaks to match narrow char version.

From-SVN: r228436

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc

index 64841c9868c5ac93824d7cba34e4972e84a383e3..fd05a65f009c13d0cb35efe618e56770f930bf9c 100644 (file)
@@ -1,5 +1,8 @@
 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
 
+       * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
+       Minor tweaks to match narrow char version.
+
        * testsuite/21_strings/basic_string/allocator/char/minimal.cc: Guard
        explicit instantiation with check for new ABI.
        * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
index 713e0302ef6076d071422f440b3424e17d24a21d..b97a58a5ecce0696da30e554505054ef1a3b6205 100644 (file)
  
 #if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T)
 using C = wchar_t;
-const C c = 'a';
+const C c = L'a';
 using traits = std::char_traits<C>;
 
 using __gnu_test::SimpleAllocator;
 
-template class std::basic_string<C,traits, SimpleAllocator<C>>;
+template class std::basic_string<C, traits, SimpleAllocator<C>>;
 
 void test01()
 {
@@ -47,4 +47,5 @@ void test01() { }
 int main()
 {
   test01();
+  return 0;
 }