Displaying 1 result from an estimated 1 matches for "num_oven".
Did you mean:
num_ovens
2020 May 28
2
Question: llvm-link type merge behaviour of c++ classes
...follows
class Shape {
public:
int width, height;
};
class Rectangle : public Shape {
public:
bool is_square;
};
class Container {
public:
void insert(Shape* s){};
};
// end shapes.h
// #include "bakery.h"
// bakery.h content follows:
class Bakery {
public:
int num_ovens, num_employees;
};
// end bakery.h
// some instances
Bakery b;
Container c;
Rectangle r;
void do_stuff() { c.insert(&r); }
void bake(Bakery* bakery) {}
```
My system:
```
clang++-9 --version
clang version 9.0.1-12
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
ll...