diff options
Diffstat (limited to 'test/SemaCXX/warn-for-var-in-else.cpp')
-rw-r--r-- | test/SemaCXX/warn-for-var-in-else.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/SemaCXX/warn-for-var-in-else.cpp b/test/SemaCXX/warn-for-var-in-else.cpp index 3368da2..f73c606 100644 --- a/test/SemaCXX/warn-for-var-in-else.cpp +++ b/test/SemaCXX/warn-for-var-in-else.cpp @@ -8,6 +8,7 @@ int foo() { return X; } else { do_something(X); // expected-warning{{'X' is always zero in this context}} + return 0; } } |