In the 3.0.4 Linux kernel, mm/filemap.c has this line of code:
retval = retval ?: desc.error;
I\'ve tried compiling a similar minimal test
This is a gcc-specific extension to C and is not standard.