xbolva00 added a comment. Another idea if you want to implement it - check fopen.
FILE *f = fopen("file", "r"); // read only fputs("str", f); // we are writing -> boom, sigsegv or something like that. https://reviews.llvm.org/D45050 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits