diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-02-05 19:37:54 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-02-05 19:37:54 +0000 |
| commit | 7c24d4db412189cf83de2bb328543564c8ad9224 (patch) | |
| tree | e4cb51a132da750e46b4dd83d720afb516c340e2 /test/libcxx | |
| parent | 15de40171694cbc46a4d1aeb4cd13e9a748fdede (diff) | |
Notes
Diffstat (limited to 'test/libcxx')
| -rw-r--r-- | test/libcxx/containers/associative/undef_min_max.pass.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/libcxx/containers/associative/undef_min_max.pass.cpp b/test/libcxx/containers/associative/undef_min_max.pass.cpp new file mode 100644 index 0000000000000..b108f0ce5736c --- /dev/null +++ b/test/libcxx/containers/associative/undef_min_max.pass.cpp @@ -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); +} |
