diff options
Diffstat (limited to 'test/Headers/cxx11.cpp')
-rw-r--r-- | test/Headers/cxx11.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Headers/cxx11.cpp b/test/Headers/cxx11.cpp index 995fc6528d..54fe350ea5 100644 --- a/test/Headers/cxx11.cpp +++ b/test/Headers/cxx11.cpp @@ -1,4 +1,5 @@ // RUN: %clang -fsyntax-only -std=c++11 %s +// RUN: %clang -fsyntax-only -std=c++11 -fmodules %s #include <stdalign.h> @@ -12,3 +13,10 @@ static_assert(__alignas_is_defined, ""); static_assert(__alignof_is_defined, ""); + + +#include <stdint.h> + +#ifndef SIZE_MAX +#error SIZE_MAX should be defined in C++ +#endif |