mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
CPP: Extend the unions test.
This commit is contained in:
@@ -21,3 +21,20 @@ struct EntryWithMethod: Entry {
|
||||
return i;
|
||||
}
|
||||
};
|
||||
|
||||
void myFunction()
|
||||
{
|
||||
union MyLocalUnion {
|
||||
int i;
|
||||
float f;
|
||||
};
|
||||
}
|
||||
|
||||
class MyClass
|
||||
{
|
||||
public:
|
||||
union MyNestedUnion {
|
||||
int i;
|
||||
float f;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user