blob: 7bf961b3c452a0eeca08fbf15e1af2d46ae0ef0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// { dg-options -std=c++0x }
struct booleable {
bool data;
constexpr explicit operator bool() { return data; }
};
constexpr booleable truthy_func() { return {true}; }
void funky() noexcept(truthy_func()) {}
int main() {
funky();
return 0;
}
|