aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/nontype4.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/nontype4.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/nontype4.C31
1 files changed, 0 insertions, 31 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/nontype4.C b/gcc/testsuite/g++.old-deja/g++.pt/nontype4.C
deleted file mode 100644
index 2aa38b1cd67..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.pt/nontype4.C
+++ /dev/null
@@ -1,31 +0,0 @@
-// Build don't link:
-
-template <class R, void (R::* A) (void)>
-class s
-{
-public:
- s (R &r) : _r (r) {}
-
- void e (void) { (_r.*A) (); }
-
-private:
- R &_r;
-};
-
-class x
-{
-public:
- void test1 (void) { int j = 0; }
- void test2 (void) { int j = 1; }
-};
-
-int
-main (void)
-{
- x r;
-
- s<x, &x::test1> c4 (r);
- s<x, &x::test2> c5 (r);
-
- return 0;
-}