blob: 1ed2c30c5c4286c690d0e4a7ad1f5887f054ff9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// PR c++/80562
// { dg-options -std=c++1z }
struct T {
constexpr auto foo() { return false; }
};
template <class MustBeTemplate>
constexpr auto bf(T t) {
if constexpr(t.foo()) {
return false;
}
return true;
}
|