You can verify that recent versions of clang allocate no memory in the function
int f() { return *new int(123); }