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
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
auto26.C
blob
d355a63973d4b433389161ad00f3b5b202820d27
1
// PR c++/43321
2
// { dg-do compile { target c++11 } }
3
4
template <class T>
5
void f(T t)
6
{
7
auto *p = t;
8
}
9
10
template <class T>
11
void g(const T& tr)
12
{
13
auto p = *tr;
14
}
15
16
int main()
17
{
18
int b;
19
f(&b);
20
g(&b);
21
}