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
c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
lambda-uneval3.C
blob
994d184b643fc93f0819486be1eff2e888e01024
1
// { dg-do compile { target c++20 } }
2
3
template <int N> void foo(const char (*s)[([]{}, N)]) {}
4
template <class T> void spam(decltype([]{}) (*s)[sizeof(T)]) {}
5
6
int main()
7
{
8
foo<1>(nullptr);
9
spam<char>(nullptr);
10
}
11
12
// { dg-final { scan-assembler-not "weak.*_Z" } }