Mercurial > hg > CbC > CbC_llvm
view clang/test/SemaTemplate/instantiate-decl-dtor.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 %s -fsyntax-only -verify template <typename T> struct A { T x; A(int y) { x = y; } ~A() { *x = 10; } // expected-error {{indirection requires pointer operand}} }; void a() { A<int> b = 10; // expected-note {{requested here}} }