summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2019-01-23 23:06:18 +0000
committerMarshall Clow <mclow.lists@gmail.com>2019-01-23 23:06:18 +0000
commit28166dd9b385861fb5bbadd7186cca16fc6a5174 (patch)
treed27dccb66b4589157c45fab73a9419d5cc670108 /libcxx/test
parente80799e6afc6959d61e086080ec490df397ee122 (diff)
downloadbcm5719-llvm-28166dd9b385861fb5bbadd7186cca16fc6a5174.tar.gz
bcm5719-llvm-28166dd9b385861fb5bbadd7186cca16fc6a5174.zip
Apply D28248: 'Work around GCC PR37804'. Thanks to mdaniels for the patch
llvm-svn: 351993
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/std/containers/associative/map/gcc_workaround.pass.cpp21
-rw-r--r--libcxx/test/std/containers/associative/set/gcc_workaround.pass.cpp21
2 files changed, 42 insertions, 0 deletions
diff --git a/libcxx/test/std/containers/associative/map/gcc_workaround.pass.cpp b/libcxx/test/std/containers/associative/map/gcc_workaround.pass.cpp
new file mode 100644
index 00000000000..622449facc1
--- /dev/null
+++ b/libcxx/test/std/containers/associative/map/gcc_workaround.pass.cpp
@@ -0,0 +1,21 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// Tests workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37804
+
+#include <map>
+std::map<int,int>::iterator it;
+#include <set>
+using std::set;
+using std::multiset;
+
+int main(void)
+{
+ return 0;
+}
diff --git a/libcxx/test/std/containers/associative/set/gcc_workaround.pass.cpp b/libcxx/test/std/containers/associative/set/gcc_workaround.pass.cpp
new file mode 100644
index 00000000000..2b923b77340
--- /dev/null
+++ b/libcxx/test/std/containers/associative/set/gcc_workaround.pass.cpp
@@ -0,0 +1,21 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// Tests workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37804
+
+#include <set>
+std::set<int> s;
+#include <map>
+using std::map;
+using std::multimap;
+
+int main(void)
+{
+ return 0;
+}
OpenPOWER on IntegriCloud