diff options
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/g++.dg/other/cv_func.C')
-rw-r--r-- | gcc-4.8.1/gcc/testsuite/g++.dg/other/cv_func.C | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/g++.dg/other/cv_func.C b/gcc-4.8.1/gcc/testsuite/g++.dg/other/cv_func.C deleted file mode 100644 index 941cb8d53..000000000 --- a/gcc-4.8.1/gcc/testsuite/g++.dg/other/cv_func.C +++ /dev/null @@ -1,30 +0,0 @@ -// { dg-do compile } - -typedef int FIC(int) const; -typedef int FI(int); - -FIC f; // { dg-error "qualified" } -struct S { - FIC f; // OK - - const FI g; - - int h(int) const; - -}; -FIC S::*pm = &S::f; -const FI S::*pm2 = &S::f; // { dg-error "cannot convert" } -const FIC S::*pm3 = &S::f; - -int S::f(int) const -{ - return 17; -} - - -int foo(float) const // { dg-error "qualifier" } -{ - return 0; -} - -int bar(float) volatile; // { dg-error "qualifier" } |