diff options
Diffstat (limited to 'config.tests/unix/c++11/c++11.cpp')
-rw-r--r-- | config.tests/unix/c++11/c++11.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config.tests/unix/c++11/c++11.cpp b/config.tests/unix/c++11/c++11.cpp index d541144bf9..671723647e 100644 --- a/config.tests/unix/c++11/c++11.cpp +++ b/config.tests/unix/c++11/c++11.cpp @@ -42,7 +42,12 @@ #if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) // Compiler claims to support C++11, trust it #else -# error "__cplusplus must be >= 201103L" +# error "__cplusplus must be >= 201103L, or __GXX_EXPERIMENTAL_CXX0X__ must be defined" +#endif + +#include <utility> +#if defined(__clang__) && !defined(_LIBCPP_VERSION) +# error "C++11 with clang requires libc++ runtime" #endif int main(int, char **) { return 0; } |