search for: is_square

Displaying 1 result from an estimated 1 matches for "is_square".

2020 May 28
2
Question: llvm-link type merge behaviour of c++ classes
...lowing invocations: ``` clang++-9 mwe.cc -S -emit-llvm -o before_link.ll llvm-link-9 -S before_link.ll -o after_link.ll ``` mwe.cc ``` // #include "shapes.h" // shapes.h content 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...