mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 08:56:06 +00:00

If the preamble had diagnostic state this would leave behind invalid state in the DiagnosticsEngine and crash later. The test case runs into an assertion in DiagnosticsEngine::setSourceManager. llvm-svn: 294963
12 lines
163 B
C++
12 lines
163 B
C++
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Weverything"
|
|
|
|
namespace std {
|
|
void wibble();
|
|
}
|
|
|
|
#pragma clang diagnostic pop
|
|
|
|
namespace std {
|
|
}
|