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
testsuite: update mangling
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-requires7.C
blob
8101d03100bdc690698cef73e82f16d08c6974ee
1
// PR c++/66758
2
// { dg-do compile { target c++20 } }
3
4
template <class T, class U>
5
concept C = requires (T t, U u) { t + u; };
6
7
template <class T, class U>
8
requires C<T,U>
9
void f(T t, U u) { t + u; }
10
11
struct non_addable { };
12
13
int main()
14
{
15
using T = decltype(f(42, 24));
16
}