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
PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
overload
/
defarg10.C
blob
b8275d60453aab63c376acbfc4f7fb26e514272c
1
// PR c++/58063
2
// { dg-do run }
3
4
struct basic_ios
5
{
6
bool operator!() const { return false; }
7
};
8
9
struct ostream : virtual basic_ios
10
{
11
};
12
13
int i;
14
15
ostream& operator<<(ostream& os, const char* s) {
16
++i;
17
return os;
18
}
19
20
ostream cout;
21
22
void f(bool x = !(cout << "hi!\n")) { }
23
24
int main() {
25
f();
26
if (i != 1)
27
__builtin_abort();
28
}