- if (setenv ("", "", 0) != -1) return 1;
- if (errno != EINVAL) return 2;
- if (setenv ("a", "=", 1) != 0) return 3;
- if (strcmp (getenv ("a"), "=") != 0) return 4;
+ int result = 0;
+ {
+ if (setenv ("", "", 0) != -1)
+ result |= 1;
+ else if (errno != EINVAL)
+ result |= 2;
+ }
+ {
+ if (setenv ("a", "=", 1) != 0)
+ result |= 4;
+ else if (strcmp (getenv ("a"), "=") != 0)
+ result |= 8;
+ }
+ return result;