]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/cast-bug.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / cast-bug.C
1 // { dg-do compile { target c++11 } }
2 struct S
3 {
4 S();
5 S(S &&);
6 private:
7 S(S &);
8 };
9
10 S f()
11 {
12 S s;
13 return static_cast<S&&>(s);
14 }
This page took 0.038865 seconds and 5 git commands to generate.