mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
21 lines
187 B
C++
21 lines
187 B
C++
struct Point2 {
|
|
int x;
|
|
int y;
|
|
};
|
|
|
|
struct Point3 : Point2 {
|
|
int z;
|
|
};
|
|
|
|
void f() {
|
|
Point2 p2;
|
|
Point3 p3;
|
|
p2 = p3;
|
|
}
|
|
|
|
void g() {
|
|
Point2* p2 = 0;
|
|
Point3* p3 = 0;
|
|
p2 = p3;
|
|
}
|