llvm-project/clang/test/Index/complete-preamble.h
Benjamin Kramer 8484a326fb [ASTUnit] Clear out diagnostic state after creating the preamble.
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
2017-02-13 16:16:43 +00:00

12 lines
163 B
C++

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything"
namespace std {
void wibble();
}
#pragma clang diagnostic pop
namespace std {
}