// RUN: %clang_cc1 -fsyntax-only -verify %s
namespace{template<bool,typename>voidFoo(){}template<int size>voidFoo(){int arr[size];// expected-error@-1 {{'arr' declared as an array with a negative size}}
}}voidtest_foo(){
Foo<-1>();// expected-note@-1 {{in instantiation of function template specialization '(anonymous namespace)::Foo<-1>' requested here}}
}template<bool,typename>voidBar(){}template<int size>voidBar(){int arr[size];// expected-error@-1 {{'arr' declared as an array with a negative size}}
}voidtest_bar(){
Bar<-1>();// expected-note@-1 {{in instantiation of function template specialization 'Bar<-1>' requested here}}
}