Skip to content

Commit 9725364

Browse files
committed
[FOLD] update test
1 parent ea37a27 commit 9725364

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/SemaCXX/cxx0x-noexcept-expression.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,22 +127,22 @@ void f1() {
127127
// `dependent` should be type-dependent because the noexcept-expression should be value-dependent
128128
// (it is true if T is int*, false if T is Polymorphic<false, false>* for example)
129129
dependent.f<void>(); // This should need to be `.template f` to parse as a template
130-
// expected-error@-1 {{use 'template' keyword to treat 'f' as a dependent template name}}
130+
// expected-warning@-1 {{use 'template' keyword to treat 'f' as a dependent template name}}
131131
}
132132
template<typename... T>
133133
void f2() {
134134
X<noexcept(typeid(*((static_cast<Polymorphic<false, false>*>(nullptr) && ... && T{}))))> dependent;
135135
// X<true> when T...[0] is a type with some operator&& which returns int*
136136
// X<false> when sizeof...(T) == 0
137137
dependent.f<void>();
138-
// expected-error@-1 {{use 'template' keyword to treat 'f' as a dependent template name}}
138+
// expected-warning@-1 {{use 'template' keyword to treat 'f' as a dependent template name}}
139139
}
140140
template<typename T>
141141
void f3() {
142142
X<noexcept(typeid(*static_cast<T*>(nullptr)))> dependent;
143143
// X<true> when T is int, X<false> when T is Polymorphic<false, false>
144144
dependent.f<void>();
145-
// expected-error@-1 {{use 'template' keyword to treat 'f' as a dependent template name}}
145+
// expected-warning@-1 {{use 'template' keyword to treat 'f' as a dependent template name}}
146146
}
147147
template<typename T>
148148
void f4() {

0 commit comments

Comments
 (0)