From 1b2a9a3b53061553c1dfc93176308f0e81c15f92 Mon Sep 17 00:00:00 2001 From: David Bolvansky Date: Thu, 18 Oct 2018 21:06:14 +0000 Subject: [PATCH] [Diagnostics] Add missing expected warning to test file llvm-svn: 344761 --- clang/test/SemaCXX/enum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/test/SemaCXX/enum.cpp b/clang/test/SemaCXX/enum.cpp index cfe5760..32e509f 100644 --- a/clang/test/SemaCXX/enum.cpp +++ b/clang/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}} -- 2.7.4