[PATCH] D50551: [libcxx] [test] Add missing <stdexcept> to several tests.

Billy Robert O'Neal III via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 9 23:05:16 PDT 2018


BillyONeal created this revision.
BillyONeal added reviewers: mclow.lists, EricWF.

https://reviews.llvm.org/D50551

Files:
  test/std/containers/associative/map/map.access/at.pass.cpp
  test/std/containers/unord/unord.map/unord.map.elem/at.pass.cpp


Index: test/std/containers/unord/unord.map/unord.map.elem/at.pass.cpp
===================================================================
--- test/std/containers/unord/unord.map/unord.map.elem/at.pass.cpp
+++ test/std/containers/unord/unord.map/unord.map.elem/at.pass.cpp
@@ -16,9 +16,10 @@
 // mapped_type&       at(const key_type& k);
 // const mapped_type& at(const key_type& k) const;
 
-#include <unordered_map>
-#include <string>
 #include <cassert>
+#include <stdexcept>
+#include <string>
+#include <unordered_map>
 
 #include "MoveOnly.h"
 #include "min_allocator.h"
Index: test/std/containers/associative/map/map.access/at.pass.cpp
===================================================================
--- test/std/containers/associative/map/map.access/at.pass.cpp
+++ test/std/containers/associative/map/map.access/at.pass.cpp
@@ -14,8 +14,9 @@
 //       mapped_type& at(const key_type& k);
 // const mapped_type& at(const key_type& k) const;
 
-#include <map>
 #include <cassert>
+#include <map>
+#include <stdexcept>
 
 #include "min_allocator.h"
 #include "test_macros.h"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50551.160059.patch
Type: text/x-patch
Size: 1084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180810/dbb267da/attachment.bin>


More information about the cfe-commits mailing list