blob: 6caa4a60e6f8c52b9991d1fe91ea537637bf4284 [file] [log] [blame]
Richard Smith5d99a252012-09-22 00:53:56 +00001// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -ftemplate-depth 16 -fcxx-exceptions -fexceptions %s
2
3template<typename T> T go(T a) noexcept(noexcept(go(a))); // \
4// expected-error 16{{call to function 'go' that is neither visible}} \
5// expected-note 16{{'go' should be declared prior to the call site}} \
6// expected-error {{recursive template instantiation exceeded maximum depth of 16}}
7
8void f() {
9 int k = go(0); // \
10 // expected-note {{in instantiation of exception specification for 'go<int>' requested here}}
11}