GitNexus/gitnexus/test/fixtures/lang-resolution/cpp-overloaded-operators/lib.cpp
azizur100389 952ada70c5
feat(cpp): Resolve overloaded operator calls (#1754)
* feat(cpp): resolve overloaded operator calls

* fix(cpp): tighten overloaded operator resolution

---------

Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
2026-05-22 13:31:06 +01:00

26 lines
348 B
C++

#include "lib.h"
namespace std {
ostream cout;
}
std::ostream& operator<<(std::ostream& os, const Point& p) {
return os;
}
void runMember(Point a, Point b) {
Point c = a + b;
}
void runFree(Point p) {
std::cout << p;
}
void runBuiltin() {
int x = 1 + 2;
}
void runBuiltinVariables(int a, int b) {
int x = a + b;
int y = a << b;
}