-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testcase generate with csmith --float undefined-behavior: incompatible pointer types passing 'float *' to parameter of type 'char *' #131
Comments
yansendao
changed the title
testcase generate with csmith --float undefined-behavior: passing argument 1 of ‘transparent_crc_bytes’ from incompatible pointer type
testcase generate with csmith --float undefined-behavior: incompatible pointer types passing 'float *' to parameter of type 'char *'
Mar 24, 2021
Similar to 132, Csmith is by design liberal when converting between pointer types. You have to demonstrate that the conversions are interpreted differently by different compilers (or compiler flags) for us to consider this a valid bug. |
/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.4.0
* Git version: deddca6
* Options: --float -o test.c
* Seed: 1619916445114238
*/
creduce result: int printf(const char *, ...);
int a, c, f, g;
char b;
int d[1];
float e;
char *h = d;
int main() {
e = -4294967289;
f = -e;
*d = f;
for (; g < 10; g++) {
printf("%lX\n", a ^ 5UL);
a = h[c];
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
test command:
gcc and clang warning:
creduce gcc warning :
The CompCert C verified compiler warning:
test-creduce.zip
test.zip
The text was updated successfully, but these errors were encountered: