fork download
  1. int main()
  2. {
  3. decltype("hello") a = "hello";
  4. ++a; // This should fail if a is indeed an array.
  5. }
  6.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:4:7: error: increment of read-only location ‘(const char*)a’
prog.cpp:4:7: error: lvalue required as increment operand
stdout
Standard output is empty