xref: /minix3/external/bsd/llvm/dist/clang/test/SemaTemplate/instantiate-decl-dtor.cpp (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
1 // RUN: %clang_cc1 %s -fsyntax-only -verify
2 
3 template <typename T> struct A {
4   T x;
5   A(int y) { x = y; }
6   ~A() { *x = 10; } // expected-error {{indirection requires pointer operand}}
7 };
8 
9 void a() {
10   A<int> b = 10; // expected-note {{requested here}}
11 }
12