libstdc++: [_Hashtable] Fix some implementation inconsistencies
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / implicit16.C
blob229f2b4cd8181e257f948362ae3618752679b248
1 // PR c++/89381
2 // { dg-do compile { target c++11 } }
4 template<typename T>
5 struct base
7   base() { }
8   base(const base&) { }
9   base(base&&) { }
10   base& operator=(const base&) { return *this; }
11   base& operator=(base&&) { return *this; }
14 struct foo : base<int>
16     using base<int>::base;
17     using base<int>::operator=;
20 //using workaround = decltype(foo{*static_cast<foo const*>(0)});
22 struct bar
24     bar& operator=(foo ve)
25     {
26         value = ve;
27         return *this;
28     }
30     foo value;
33 int main()
35     foo a;
36     foo b{a};