aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2023-05-12 08:37:54 -0400
committerPatrick Palka <ppalka@redhat.com>2023-05-12 08:37:54 -0400
commit10098788ff61467f5a499f01c5443fb53ff564dd (patch)
treeb0692b6e6012bb4ac77f516f0ac31fcbfba79fba /gcc/testsuite/g++.dg
parent11fa2729eff8bc585e33086bb2c595ae8a37d14f (diff)
downloadgcc-10098788ff61467f5a499f01c5443fb53ff564dd.zip
gcc-10098788ff61467f5a499f01c5443fb53ff564dd.tar.gz
gcc-10098788ff61467f5a499f01c5443fb53ff564dd.tar.bz2
c++: remove redundant testcase [PR83258]
I noticed only after the fact that the new testcase template/function2.C (from r14-708-gc3afdb8ba8f183) is just a subset of ext/visibility/anon8.C, so let's get rid of it. PR c++/83258 gcc/testsuite/ChangeLog: * g++.dg/ext/visibility/anon8.C: Mention PR83258. * g++.dg/template/function2.C: Removed.
Diffstat (limited to 'gcc/testsuite/g++.dg')
-rw-r--r--gcc/testsuite/g++.dg/ext/visibility/anon8.C2
-rw-r--r--gcc/testsuite/g++.dg/template/function2.C8
2 files changed, 1 insertions, 9 deletions
diff --git a/gcc/testsuite/g++.dg/ext/visibility/anon8.C b/gcc/testsuite/g++.dg/ext/visibility/anon8.C
index bfcc2d0..2c3a8ac 100644
--- a/gcc/testsuite/g++.dg/ext/visibility/anon8.C
+++ b/gcc/testsuite/g++.dg/ext/visibility/anon8.C
@@ -26,7 +26,7 @@ int main ()
static void fn2 () {}
};
call<&B1::fn1> ();
- call<&B2::fn2> (); // { dg-error "linkage|no matching" "" { target c++14_down } }
+ call<&B2::fn2> (); // { dg-error "linkage|no matching" "PR83258" { target c++14_down } }
call<&fn3> ();
call<&B1::fn4> ();
call<&fn5> (); // { dg-error "linkage|no matching" "" { target { ! c++11 } } }
diff --git a/gcc/testsuite/g++.dg/template/function2.C b/gcc/testsuite/g++.dg/template/function2.C
deleted file mode 100644
index 54c48e6..0000000
--- a/gcc/testsuite/g++.dg/template/function2.C
+++ /dev/null
@@ -1,8 +0,0 @@
-// PR c++/83258
-
-template<void(*)()> struct A { };
-
-int main() {
- struct B { static void f() { } };
- A<B::f> a; // { dg-error "linkage" "" { target c++14_down } }
-}