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
* cfgloopmanip.c (duplicate_loop_to_header_edge): Cleanup profile
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template19.C
blob
0a57742a37757dd79812bb7b0ee8a40f1d1d06e3
1
// { dg-do run }
2
// Make sure type deduction isn't confused by top-level cv-quals.
3
template <class T> T max (const T a, const T b) { return a>b?a:b; }
4
5
int main()
6
{
7
int a = 0, b = 1;
8
int c = max (a, b);
9
int d = max ((const int)a, (const int)b);
10
}