aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/g++.dg/cpp0x/auto14.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/g++.dg/cpp0x/auto14.C')
-rw-r--r--gcc-4.8.1/gcc/testsuite/g++.dg/cpp0x/auto14.C29
1 files changed, 0 insertions, 29 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/g++.dg/cpp0x/auto14.C b/gcc-4.8.1/gcc/testsuite/g++.dg/cpp0x/auto14.C
deleted file mode 100644
index cb2c4e035..000000000
--- a/gcc-4.8.1/gcc/testsuite/g++.dg/cpp0x/auto14.C
+++ /dev/null
@@ -1,29 +0,0 @@
-// PR c++/40306, c++/40307
-// { dg-options "-std=c++0x" }
-// { dg-do run }
-
-template< typename T >
-struct test {
- test run() {
- auto tmp = *this;
- return tmp;
- }
- test run_pass() {
- test tmp( *this );
- return tmp;
- }
-
- test run_fail() {
- auto tmp( *this );
- return tmp;
- }
-};
-
-int main()
-{
- test<int> x;
- x.run();
- x.run_pass();
- x.run_fail();
- return 0;
-}