Vendor import of libc++ release_40 branch r294123:
https://llvm.org/svn/llvm-project/libcxx/branches/release_40@294123
This commit is contained in:
parent
15de401716
commit
7c24d4db41
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor/libc++/dist/; revision=313295 svn path=/vendor/libc++/libc++-release_40-r294123/; revision=313296; tag=vendor/libc++/libc++-release_40-r294123
@ -17,6 +17,8 @@
|
||||
#include <stdexcept>
|
||||
#include <algorithm>
|
||||
|
||||
#include <__undef_min_max>
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
#pragma GCC system_header
|
||||
#endif
|
||||
|
22
test/libcxx/containers/associative/undef_min_max.pass.cpp
Normal file
22
test/libcxx/containers/associative/undef_min_max.pass.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#pragma GCC diagnostic ignored "-W#warnings"
|
||||
#endif
|
||||
|
||||
#define min THIS IS A NASTY MACRO!
|
||||
#define max THIS IS A NASTY MACRO!
|
||||
|
||||
#include <map>
|
||||
|
||||
int main() {
|
||||
std::map<int, int> m;
|
||||
((void)m);
|
||||
}
|
Loading…
Reference in New Issue
Block a user