blob: 4f3d12757ffa460e3331b8fa47dfecfe87091a53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Test that C++20 overload changes don't break sloppy code.
struct C {
bool operator==(const C&);
bool operator!=(const C&);
};
int main() {
C c1, c2;
(void)(c1 == c2);
(void)(c1 != c2);
}
|