Add functionpointer5 to regression integration tests
- Dominant language
- C++
- Stars
- 8.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Add binaries compiled from the following source code to regression tests. Fix found problems. Test standard combinations, as well as these:
- `ARM, -O2, --strip`
- `x86, -O2, --no-debug-info`
```c
typedef int (*ptr2func)(int, int);
int plus(int a, int b)
{
return a + b;
}
int minus(int a, int b)
{
return a - b;
}
int evaluate(int a, int b, ptr2func f)
{
return f(a,b);
}
int main(int argc, char *argv[])
{
int a;
if (argc > 2)
a = evaluate(1, 2, plus);
else
a = evaluate(1, 2, minus);
return a;
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the regression integration tests and existing compiled-binary fixtures, then use the provided C program with its main entry point as the new case. Compile it for the standard combinations and the specified ARM and x86 options; done means the binaries are included and all regression tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- compilers, testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100