#include <iostream> using namespace std; int main() { volatile int foos[1]; new (foos) int(12); return 0; }
1 2 10 42 11
prog.cpp: In function 'int main()': prog.cpp:8:19: error: invalid conversion from 'volatile void*' to 'void*' prog.cpp:8:19: error: initializing argument 2 of 'void* operator new(size_t, void*)'
Standard output is empty