mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
24 lines
220 B
C++
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;
|
|
}
|
|
};
|