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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
bool7.C
blob
dd1a6f2a4cd62d3ac2c3eb565da86fe5e120e025
1
// { dg-do assemble }
2
3
struct A
4
{
5
operator bool () const;
6
operator const void * () const;
7
};
8
9
struct B
10
{
11
A a;
12
int foo1 ();
13
int foo2 ();
14
};
15
16
int
17
B::foo1 ()
18
{
19
return a ? 0 : 1; // ambiguous default type conversion for `operator !='
20
}
21
22
int
23
B::foo2 ()
24
{
25
if (a)
26
return 0;
27
else
28
return 1;
29
}