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
/
consteval25.C
blob
80b76a474cbd9eab1777f8936794b042d074127f
1
// PR c++/102753
2
// { dg-do compile { target c++20 } }
3
// { dg-options "" }
4
5
consteval int foo () { return 42; }
6
7
consteval int
8
bar (int (*fn) ())
9
{
10
return fn ();
11
}
12
13
void
14
baz ()
15
{
16
static_assert (bar (({ constexpr auto a = 1; foo; })) == 42);
17
}