Files
codeql/cpp/ql/test/library-tests/unions/unions.cpp
2018-08-02 17:53:23 +01:00

24 lines
220 B
C++

enum Type { S, I };
struct Entry {
char* name;
Type t;
char* s;
int i;
};
union Value {
char* s;
int i;
};
struct EntryWithMethod: Entry {
int getAsInt() {
return i;
}
};