Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define BUGGY
- void funcA(int s, int g)
- {
- int i, j = 0, k;
- int grp[4] = {-1, -1};
- for (i = 0, k = 0; i < 1; ++i) {
- for (j = 0; j < 1; ++j) {
- if ( grp[g] > 0 )
- {
- if ( g > 5 ) {
- continue;
- }
- else {
- #ifdef BUGGY
- *(long long *)grp = 0;
- #else
- *(int *)grp = 0;
- *(((int *)grp) + 1) = 0;
- #endif
- }
- }
- grp[k++] = 0;
- }
- printf("this should be zero: %d\n", grp[0]);
- }
- }
- int main(void) {
- funcA(0, 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement