1// { dg-do run } 2// Copyright (C) 2001 Free Software Foundation, Inc. 3// Contributed by Jason Merrill 14 Jun 2001 <jason@redhat.com> 4 5// Test that deduction can add cv-quals to a pointer-to-member type. 6 7struct A; 8int A::* pi; 9 10template <typename T> void f (const T A::*) {} 11 12int main () 13{ 14 f (pi); 15} 16