]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.mike/ref1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / ref1.C
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/ref1.C b/gcc/testsuite/g++.old-deja/g++.mike/ref1.C
deleted file mode 100644 (file)
index 054c985..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-int count;
-
-struct base {
-  base () { ++count; }
-  ~base () { --count; }
-  base(const base&o) { ++count; }
-};
-
-base base_returning_function ();
-
-const base& base_ref = base_returning_function ();
-
-int main () {
-  if (count != 1)
-    return 1;
-}
-
-base base_returning_function () {
-  base local_base_object;
-  return local_base_object;
-}