diff options
Diffstat (limited to 'test/SemaTemplate/instantiate-function-1.cpp')
-rw-r--r-- | test/SemaTemplate/instantiate-function-1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaTemplate/instantiate-function-1.cpp b/test/SemaTemplate/instantiate-function-1.cpp index 1bda430..a293e9a 100644 --- a/test/SemaTemplate/instantiate-function-1.cpp +++ b/test/SemaTemplate/instantiate-function-1.cpp @@ -39,11 +39,11 @@ template struct X3<int>; template <typename T> struct X4 { T f() const { - return; // expected-warning{{non-void function 'f' should return a value}} + return; // expected-error{{non-void function 'f' should return a value}} } T g() const { - return 1; // expected-warning{{void function 'g' should not return a value}} + return 1; // expected-error{{void function 'g' should not return a value}} } }; |