mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
C++: Add a test with missing summaries.
This commit is contained in:
@@ -198,4 +198,14 @@ int get_x_from_union(U* u) {
|
||||
//contentbased-summary=;;true;set_x_in_union;(U *,int);;Argument[1];Argument[*0].Union[*U];value;dfc-generated
|
||||
void set_x_in_union(U* u, int x) {
|
||||
u->x = x;
|
||||
}
|
||||
|
||||
struct HasInt {
|
||||
int x;
|
||||
};
|
||||
|
||||
|
||||
int copy_struct(HasInt *out, const HasInt *in) {
|
||||
*out = *in;
|
||||
return 1;
|
||||
}
|
||||
Reference in New Issue
Block a user