int f(int x) { // If x < 5, then UB. if (x >= 5) return 6; // As specified, UB occurs. }
Standard input is empty
prog.cpp: In function ‘int f(int)’: prog.cpp:6: warning: control reaches end of non-void function /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status
Standard output is empty