mm, oom: do not rely on TIF_MEMDIE for memory reserves access
[linux/fpc-iii.git] / tools / build / feature / test-clang.cpp
blobe23c1b1f1b91211bbfa8f5a66876ea817c3f0462
1 #include "clang/Basic/VirtualFileSystem.h"
2 #include "clang/Driver/Driver.h"
3 #include "clang/Frontend/TextDiagnosticPrinter.h"
4 #include "llvm/ADT/IntrusiveRefCntPtr.h"
5 #include "llvm/Support/ManagedStatic.h"
6 #include "llvm/Support/raw_ostream.h"
8 using namespace clang;
9 using namespace clang::driver;
11 int main()
13 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
14 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions();
16 DiagnosticsEngine Diags(DiagID, &*DiagOpts);
17 Driver TheDriver("test", "bpf-pc-linux", Diags);
19 llvm::llvm_shutdown();
20 return 0;