]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.dg/ref1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.dg / ref1.C
diff --git a/gcc/testsuite/g++.dg/ref1.C b/gcc/testsuite/g++.dg/ref1.C
deleted file mode 100644 (file)
index aaf04cf..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-// Origin: Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
-
-// { dg-do link }
-
-template <class T>
-class Ptr {
-protected:
-  T * ptr;
-
-public:
-  
-  Ptr(void) : ptr(0) { };
-  Ptr(T * p) : ptr(p) { };
-  
-  ~Ptr(void) { delete ptr; }
-  
-  operator T & () { return *ptr; }
-};
-
-class base {
-public: 
-  base(void) { }
-  ~base(void) { }
-};
-
-
-class foo : public base {
-private:
-  foo(const foo & rv);
-  
-public:
-  
-  foo(void) { }
-  ~foo(void) { }
-};
-
-void func2(base & b) {
-  // ...
-}
-
-int main () {
-  Ptr<foo> f = new foo;
-  /* This should not result in a copy; the result of the conversion
-     operator should be bound directly to the reference argument to
-     `func2'.  */
-  func2(f);
-}