1 // PR c++/69203
2 // { dg-do compile { target c++11 } }
3 
4 struct A { ~A(); };
f(int i)5 constexpr int f(int i) { return i; }
g(A * ap)6 constexpr int g(A* ap)
7 {
8   return f((delete[] ap, 42)); // { dg-message "" "" { target c++17_down } }
9 }
10 
11 A a;
12 constexpr int i = g(&a);	// { dg-error "" }
13 				// { dg-message "in 'constexpr' expansion of" "" { target c++2a } .-1 }
14