Mercurial > hg > CbC > CbC_llvm
view clang/test/SemaTemplate/instantiation-depth-exception-spec.cpp @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children | 1f2b6ac9f198 |
line wrap: on
line source
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -ftemplate-depth 16 -fcxx-exceptions -fexceptions %s template<int N> struct X { static int go(int a) noexcept(noexcept(X<N+1>::go(a))); // \ // expected-error {{recursive template instantiation exceeded maximum depth of 16}} \ // expected-note 9{{in instantiation of exception specification}} \ // expected-note {{skipping 7 context}} \ // expected-note {{use -ftemplate-depth}} }; void f() { int k = X<0>::go(0); // \ // expected-note {{in instantiation of exception specification for 'go' requested here}} }