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
[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
placeholder3.C
blob
44dba8b98a2cd20d553313eb449787970b11e877
1
// PR c++/66218
2
// { dg-options "-std=c++17 -fconcepts" }
3
4
template <class T, class U>
5
concept bool Same = __is_same_as(T, U);
6
7
template <class T>
8
concept bool C =
9
requires {
10
{ 0 } -> Same<T>;
11
};
12
13
template <C c>
14
constexpr bool f() { return true; }
15
16
static_assert(f<double>(), ""); // { dg-error "" }
17
static_assert(f<int>(), "");