FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / deduct7.C
blobec51d30878d1ed8e221756d6c76c16bae613e7a6
1 // Copyright (C) 2001 Free Software Foundation, Inc.
2 // Contributed by Jason Merrill 14 Jun 2001 <jason@redhat.com>
4 // Test that deduction can add cv-quals to a pointer-to-member type.
6 struct A;
7 int A::* pi;
9 template <typename T> void f (const T A::*) {}
11 int main ()
13   f (pi);