int main() { decltype("hello") a = "hello"; ++a; // This should fail if a is indeed an array. }
Standard input is empty
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
Standard output is empty