Merge tag 'block-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / tools / build / feature / test-llvm.cpp
blob88a3d1bdd9f6978e998eb7e480b78aced875f841
1 // SPDX-License-Identifier: GPL-2.0
2 #include "llvm/Support/ManagedStatic.h"
3 #include "llvm/Support/raw_ostream.h"
4 #define NUM_VERSION (((LLVM_VERSION_MAJOR) << 16) + (LLVM_VERSION_MINOR << 8) + LLVM_VERSION_PATCH)
6 #if NUM_VERSION < 0x030900
7 # error "LLVM version too low"
8 #endif
9 int main()
11 llvm::errs() << "Hello World!\n";
12 llvm::llvm_shutdown();
13 return 0;