On 13:22 Fri 13 Apr     , Rick Mann via cfe-users wrote:
> I'm using `strrchr("/" __FILE__, '/') + 1`. Should that also get resolved?
Just have a look at a minimal example on godbolt:
https://godbolt.org/g/MRjGG3

Indeed the function call gets resolved at compile time. But that does
not mean that only the basename of __FILE__ is present in the binary.
No compiler that you can test on godbolt does this actually, neither
with -O3 nor with -Os.

_______________________________________________
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

Reply via email to