aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/warning8.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/warning8.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/warning8.C17
1 files changed, 0 insertions, 17 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/warning8.C b/gcc/testsuite/g++.old-deja/g++.jason/warning8.C
deleted file mode 100644
index d6ea821eb90..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.jason/warning8.C
+++ /dev/null
@@ -1,17 +0,0 @@
-// Build don't link:
-
-struct A {
- A();
- ~A();
-};
-
-struct B {
- B (const A&);
- ~B ();
-};
-
-const B& f ()
-{
- A a;
- return a; // WARNING - returning reference to temporary
-}