diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/temp-constructor-bug.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/temp-constructor-bug.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/temp-constructor-bug.C b/gcc/testsuite/g++.dg/cpp0x/temp-constructor-bug.C new file mode 100644 index 000000000..a06720702 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/temp-constructor-bug.C @@ -0,0 +1,15 @@ +// { dg-options "--std=c++0x" } + +struct S { }; + +struct T +{ + S s; +}; + +void f(T const &); + +void g() +{ + f((T){S()}); +} |