pastebin

Paste Search Dynamic
Recent pastes
$ cat foo.c
  1. $ cat foo.c
  2. #include<stdio.h>
  3.  
  4. int main(void) {
  5.     int i = 0;
  6.     i++ + ++i;
  7.     return 0;
  8. }
  9.  
  10. $ gcc foo.c -fsanitize=undefined
  11. $ clang foo.c -fsanitize=undefined
  12. foo.c:5:9: warning: expression result unused [-Wunused-value]
  13.     i++ + ++i;
  14.     ~~~ ^ ~~~
  15. foo.c:5:6: warning: multiple unsequenced modifications to 'i' [-Wunsequenced]
  16.     i++ + ++i;
  17.      ^    ~~
  18. 2 warnings generated.
  19.  
Parsed in 0.003 seconds