☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
other
/
error20.C
☽
☼
gcc/testsuite/g++.dg/other/error20.C
code
plain
raw
1
// PR c++/34275
2
// { dg-do compile }
3
4
struct A // { dg-message "operator=|no known conversion" }
5
{
6
virtual A foo ();
7
};
8
9
void bar (A& a)
10
{
11
a.foo () = 0; // { dg-error "operand types are 'A' and 'int'" }
12
}