summaryrefslogtreecommitdiffstats
path: root/clang/test/Headers/cxx11.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [modules] Don't expose *intrin.h headers that cannot be included standalone asRichard Smith2016-04-161-0/+1
| | | | | | separate modules. These cause build breakage with -fmodules-local-submodule-visibility. llvm-svn: 266501
* Add a module cache path to test/Headers/cxx11Ben Langmuir2014-08-121-1/+2
| | | | | | Don't depend on the serialization format remaining the same. llvm-svn: 215454
* Re-enable the C++11 modules integration test on OS XAlp Toker2014-04-191-2/+2
| | | | | | | | | | XCode 5.1.1 has shipped with fixed SDK headers. This reverts commit r200256. Fixes PR18322. llvm-svn: 206686
* Temporarily disable test that fails on Mac OS X 10.9.Bob Wilson2014-01-271-1/+1
| | | | | | | PR18322. This test will be reenabled when the SDK gets fixed. In the meantime, it is pretty disruptive to have this test keep failing. llvm-svn: 200256
* Add a FIXME to a failing test.Nico Weber2013-12-241-0/+2
| | | | | | (See discussion in the bug for why this isn't XFAILed.) llvm-svn: 197991
* Switch tests in test/Headers to use %clang_cc1 rather than %clang. ThereChandler Carruth2013-09-201-2/+2
| | | | | | | | is no need to go through the driver indirection here, and it clutters things up as dependencies can sneak in for specific things the driver is doing. llvm-svn: 191107
* Enable -ffreestanding for this test, to avoid #include_next'ing the system'sRichard Smith2013-07-031-2/+2
| | | | | | <stdint.h> (which might not exist or might not work). llvm-svn: 185565
* tl;dr: Teach Clang to work around g++ changing its workaround to glibc'sRichard Smith2013-04-121-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | implementation of C99's attempt to control the C++ standard. *sigh* The C99 standard says that certain macros in <stdint.h>, such as SIZE_MAX, should not be defined when the header is included in C++ mode, unless __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS are defined. The C++11 standard says "Thanks, but no thanks" and C11 removed this rule, but various C library implementations (such as glibc) follow C99 anyway. g++ prior to 4.8 worked around the C99 / glibc behavior by defining __STDC_*_MACROS in <cstdint>, which was incorrect, because <stdint.h> is supposed to provide these macros too. g++ 4.8 works around it by defining __STDC_*_MACROS in its builtin <stdint.h> header. This change makes Clang act like g++ 4.8 in this regard: our <stdint.h> now countermands any attempt by the C library to implement the undesired C99 rules, by defining the __STDC_*_MACROS first. Unlike g++, we do this even in C++98 mode, since that was the intent of the C++ committee, matches the behavior required in C11, and matches our built-in implementation of <stdint.h>. llvm-svn: 179419
* Add tests that build modules for our builtin headers, and fix two buglets ↵Richard Smith2013-04-041-0/+1
| | | | | | exposed by doing so. llvm-svn: 178736
* libstdc++'s <cstdalign> #includes <stdalign.h> and expects it to guard againstRichard Smith2013-02-211-0/+14
being included in C++. Don't define alignof or alignas in this case. Note that the C++11 standard is broken in various ways here (it refers to the contents of <stdalign.h> in C99, where that header did not exist, and doesn't mention the alignas macro at all), but we do our best to do what it intended. llvm-svn: 175708
OpenPOWER on IntegriCloud