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
2017-06-14 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
pr70610-3.C
blob
4be458cca59a284b45618a4aa5c717a5f8e2cade
1
// PR c++/70610
2
// { dg-do link }
3
4
void bar (const int &, int &);
5
void bar (int &, const int &);
6
void bar (const int &, const int &) { }
7
8
int a, b;
9
10
template <typename T>
11
void
12
foo ()
13
{
14
bar (a + 1, b + 2);
15
}
16
17
int
18
main ()
19
{
20
foo<int> ();
21
}