#include <stdio.h> int main(void) { int foo = 1; if (foo = 2) { } }
Standard input is empty
prog.c: In function 'main': prog.c:6:5: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] if (foo = 2) ^ cc1: all warnings being treated as errors
Standard output is empty