diff options
Diffstat (limited to 'test/libcxx/containers/associative/undef_min_max.pass.cpp')
-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 000000000000..b108f0ce5736 --- /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); +} |