]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/qual1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / qual1.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/qual1.C b/gcc/testsuite/g++.old-deja/g++.other/qual1.C
deleted file mode 100644 (file)
index 13f9bbe..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// Build don't link:
-// Origin: Benjamin Pflugmann <philemon@spin.de>
-// Special g++ Options: -O
-
-// DR 295 allows qualification via typedef
-
-typedef const char *(func_type)();
-
-class
-{
-public:
-  func_type *Function;
-  // The following is DR 295 dependent
-  const func_type* function(void) { return Function; } // ERROR - constifying
-  volatile func_type* functionv(void); // ERROR - qualifier
-} action;
-
-void work(const char *source)
-{
-  work( action.function()() );
-}