[cfe-commits] r154654 - /cfe/trunk/INPUTS/all-std-headers.cpp
Richard Smith
richard-llvm at metafoo.co.uk
Thu Apr 12 20:39:16 PDT 2012
Author: rsmith
Date: Thu Apr 12 22:39:16 2012
New Revision: 154654
URL: http://llvm.org/viewvc/llvm-project?rev=154654&view=rev
Log:
all-std-headers.cpp: Include the C++11 headers when building with clang
in -std=gnu++11 mode.
Modified:
cfe/trunk/INPUTS/all-std-headers.cpp
Modified: cfe/trunk/INPUTS/all-std-headers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/INPUTS/all-std-headers.cpp?rev=154654&r1=154653&r2=154654&view=diff
==============================================================================
--- cfe/trunk/INPUTS/all-std-headers.cpp (original)
+++ cfe/trunk/INPUTS/all-std-headers.cpp Thu Apr 12 22:39:16 2012
@@ -52,7 +52,7 @@
#include <valarray>
#include <vector>
-#if __cplusplus >= 201103
+#if __cplusplus >= 201103 || defined(__GXX_EXPERIMENTAL_CXX0X__)
#include <array>
#if __has_include(<atomic>)
#include <atomic>
More information about the cfe-commits
mailing list