The leaders of the G7 today gave a stark warning about a British vote to leave the European Union, saying it would threaten the global economy.

The U.K. goes to the polls on June 23 to decide whether the country should stay in the EU.

The leaders said in a declaration, "A U.K. exit from the EU would reverse the trend towards greater global trade and investment, and the jobs they create, and further serious risk to growth."

The warning was issued in a section of the declaration that addressed non-economic threats such as geopolitical conflicts, terrorism and the refugee crisis.

According to the U.K's Guardian newspaper, the "Brexit" warning was added at the last minute as it was not included in the draft issues Thursday night.

The group of seven leaders - President Obama, Japan's Shinzo Abe, Canada's Justin Trudeau, France's Angela Merkel, Italy's Matteo Renzi, the U.K.'s David Cameron and the EU's Donald Tusk - were meeting in Ise-Shima, Japan.

"Global growth is our urgent priority," the leaders said. "Taking into account country-specific circumstances, we commit to strengthening our economic policy responses in a cooperative manner."

In a press conference following the summit, it was revealed that the referendum was not a topic of discussion at the meeting. German chancellor Angela Merkel said, ""It was no subject here. But there was the signal that all who sat here want Britain to stay part of the EU."