repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
deduct7.C
blob
ec51d30878d1ed8e221756d6c76c16bae613e7a6
1
// Copyright (C) 2001 Free Software Foundation, Inc.
2
// Contributed by Jason Merrill 14 Jun 2001 <jason@redhat.com>
3
4
// Test that deduction can add cv-quals to a pointer-to-member type.
5
6
struct A;
7
int A::* pi;
8
9
template <typename T> void f (const T A::*) {}
10
11
int main ()
12
{
13
f (pi);
14
}