forked from OSchip/llvm-project
parent
ec49313b11
commit
fb5c750222
|
@ -17,6 +17,8 @@
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
#include <__undef_min_max>
|
||||||
|
|
||||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||||
#pragma GCC system_header
|
#pragma GCC system_header
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -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