xref: /llvm-project/clang/test/CXX/special/class.dtor/p2.cpp (revision c6e68daac0fa6e77a89f3ca72f266a528503dd1c)
18fbe78f6SDaniel Dunbar // RUN: %clang_cc1 -fsyntax-only -verify %s
2*c6e68daaSAndy Gibbs // expected-no-diagnostics
3931e0bd3SSebastian Redl 
4931e0bd3SSebastian Redl // PR5548
5931e0bd3SSebastian Redl struct A {~A();};
a(const A * x)6931e0bd3SSebastian Redl void a(const A* x) {
7931e0bd3SSebastian Redl   x->~A();
8931e0bd3SSebastian Redl }
9