Create pat_1047.cpp