From: David Bolvansky Date: Thu, 18 Oct 2018 21:06:14 +0000 (+0000) Subject: [Diagnostics] Add missing expected warning to test file X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=987c5a37f2041b07510c5e94e7152f52727f60ce;p=clang [Diagnostics] Add missing expected warning to test file git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344761 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/enum.cpp b/test/SemaCXX/enum.cpp index cfe5760112..32e509f89e 100644 --- a/test/SemaCXX/enum.cpp +++ b/test/SemaCXX/enum.cpp @@ -105,7 +105,7 @@ void PR8089() { // This is accepted as a GNU extension. In C++98, there was no provision for // expressions with UB to be non-constant. -enum { overflow = 123456 * 234567 }; +enum { overflow = 123456 * 234567 }; // expected-warning {{overflow in expression; result is -1106067520 with type 'int'}} #if __cplusplus >= 201103L // expected-warning@-2 {{not an integral constant expression}} // expected-note@-3 {{value 28958703552 is outside the range of representable values}}