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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
deduct7.C
blob
99f96966c700207d2f64186d6265c4911f322c61
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
7
struct A;
8
int A::* pi;
9
10
template <typename T> void f (const T A::*) {}
11
12
int main ()
13
{
14
f (pi);
15
}