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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype-1212.C
blob
f9c879e9525d8941340dcc4afb46fcf67d4478c4
1
// Core 1212
2
// { dg-do compile { target c++11 } }
3
4
template <class T, class U> struct assert_same_type;
5
template <class T> struct assert_same_type<T,T> {};
6
7
int main()
8
{
9
int i;
10
assert_same_type<int&&,decltype(static_cast<int&&>(i))>();
11
}