fork download
  1. #define FOO _Pragma("GCC diagnostic push") 42
  2. int foo = FOO;
  3.  
  4. #define BAR 42 _Pragma("GCC diagnostic push")
  5. int bar = BAR;
  6.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:2:1: error: expected expression before '#pragma'
 int foo = FOO; 
 ^
prog.c:5:1: error: expected ',' or ';' before '#pragma'
 int bar = BAR; 
 ^
stdout
Standard output is empty