1 // { dg-do run  }
2 // Test that const-correctness is observed when using new.
3 
4 struct A {
AA5   A() { }
fA6   int f () { return 1; }
fA7   int f () const { return 0; }
8 };
9 
main()10 int main ()
11 {
12   return (new const A)->f ();
13 }
14