add CI
This commit is contained in:
20
test/generate_warnings.c
Normal file
20
test/generate_warnings.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <limits.h>
|
||||
|
||||
int bad_code(float n) {
|
||||
|
||||
int small[3];
|
||||
|
||||
char index = 10;
|
||||
|
||||
int x = small[index];
|
||||
|
||||
double promoted = 3.14159 * n * n;
|
||||
|
||||
return bad_code(x);
|
||||
}
|
||||
|
||||
|
||||
int main() {
|
||||
|
||||
printf("%s %s", bad_code(1.0f));
|
||||
}
|
||||
Reference in New Issue
Block a user