Skip to content

Commit 0228989

Browse files
committed
Update test case
1 parent eba957a commit 0228989

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

clang/test/SemaCXX/wreturn-always-throws.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,15 @@ void testTemplates() {
5151
template<typename T>
5252
struct S {
5353
void f();
54+
void g();
5455
};
5556

5657
template<typename T>
5758
void S<T>::f() { throw 0; }
5859
template<>
59-
void S<int>::f() {} // expected-no-diagnostics
60-
60+
void S<int>::f() {}
6161

62+
template<typename T>
63+
void S<T>::g() {}
64+
template<>
65+
void S<int>::g() { throw 0; }

0 commit comments

Comments
 (0)