diff options
Diffstat (limited to 'odb/odb/semantics/union.cxx')
-rw-r--r-- | odb/odb/semantics/union.cxx | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/odb/odb/semantics/union.cxx b/odb/odb/semantics/union.cxx new file mode 100644 index 0000000..007ef57 --- /dev/null +++ b/odb/odb/semantics/union.cxx @@ -0,0 +1,36 @@ +// file : odb/semantics/union.cxx +// license : GNU GPL v3; see accompanying LICENSE file + +#include <libcutl/compiler/type-info.hxx> +#include <odb/semantics/union.hxx> + +namespace semantics +{ + union_:: + union_ (path const& file, size_t line, size_t column, tree tn) + : node (file, line, column, tn) + { + } + + // type info + // + namespace + { + struct init + { + init () + { + using compiler::type_info; + + // union_ + // + { + type_info ti (typeid (union_)); + ti.add_base (typeid (type)); + ti.add_base (typeid (scope)); + insert (ti); + } + } + } init_; + } +} |