aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1999-03-23 14:17:08 -0500
committerJason Merrill <jason@gcc.gnu.org>1999-03-23 14:17:08 -0500
commit0234ca02090509afb8afd7055251b4d29f7386e5 (patch)
tree46f3b07d4befff9f52e89d9ac3de022fac69702b
parent93aa462d4e86df64f9d9952fdbd5b0825ce55703 (diff)
downloadgcc-0234ca02090509afb8afd7055251b4d29f7386e5.zip
gcc-0234ca02090509afb8afd7055251b4d29f7386e5.tar.gz
gcc-0234ca02090509afb8afd7055251b4d29f7386e5.tar.bz2
tweak
From-SVN: r25930
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/ptrmem7.C19
1 files changed, 6 insertions, 13 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/ptrmem7.C b/gcc/testsuite/g++.old-deja/g++.pt/ptrmem7.C
index 4c01056..9efeec8 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/ptrmem7.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/ptrmem7.C
@@ -1,21 +1,14 @@
// Build don't link:
// Origin: Jason Merrill <jason@cygnus.com>
-struct A
-{
- A() : x(123) { }
- int x;
-};
-A a;
-
-template<const int A::*PX>
-struct B
-{
- static int g() { return a.*PX; }
+struct A {
+ int i;
};
+template<const int A::* P>
+struct B { };
-int main(int argc, char *argv[])
+int main()
{
- int n = B<&A::x>::g();
+ B<&A::i> b;
}