]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/call1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / call1.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/call1.C b/gcc/testsuite/g++.old-deja/g++.other/call1.C
deleted file mode 100644 (file)
index 1cf6d97..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-// Test that various calls to non-functions work.
-
-void f () { }
-
-typedef void (*fptr)();
-typedef void (&fref)();
-fptr p = f;
-fref r = f;
-const fptr &pr = p;
-
-struct A {
-  fptr p;
-
-  A (fptr n): p(n) { }
-  operator fptr () { return p; }
-};
-
-struct B {
-  fref r;
-
-  B (fptr n): r(*n) { }
-  operator const fref () { return r; }
-};
-
-struct C {
-  const fptr pr;
-
-  C (fptr n): pr(n) { }
-  operator const fptr& () { return pr; }
-};
-
-int main ()
-{
-  f();
-
-  p();
-  r();
-  pr();
-
-  A a (f);
-  a();
-  a.p();
-
-  B b (f);
-  b();
-  b.r();
-
-  C c (f);
-  c();
-  c.pr();
-}