Changeset View
Changeset View
Standalone View
Standalone View
clang/test/SemaCXX/attr-annotate.cpp
Show All 36 Lines | namespace test0 { | ||||
A<int, 9> a; | A<int, 9> a; | ||||
// expected-note@-1 {{in instantiation of template class}} | // expected-note@-1 {{in instantiation of template class}} | ||||
A<long, 7> a1; | A<long, 7> a1; | ||||
// expected-note@-1 {{in instantiation of template class}} | // expected-note@-1 {{in instantiation of template class}} | ||||
A<unsigned long, 6> a2; | A<unsigned long, 6> a2; | ||||
template<typename T> | template<typename T> | ||||
struct B { | struct B { | ||||
[[clang::annotate("test", ((void)T{}, 9))]] void t() {} | [[clang::annotate("test", ((void)T{1}, 9))]] void t() {} | ||||
// expected-error@-1 {{illegal initializer type 'void'}} | // expected-error@-1 {{initializer list for 'void' must be empty}} | ||||
}; | }; | ||||
B<int> b; | B<int> b; | ||||
B<void> b1; | B<void> b1; | ||||
// expected-note@-1 {{in instantiation of template class}} | // expected-note@-1 {{in instantiation of template class}} | ||||
} | } | ||||
namespace test1 { | namespace test1 { | ||||
int g_i; // expected-note {{declared here}} | int g_i; // expected-note {{declared here}} | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |