]> Git Repo - linux.git/blob - tools/build/feature/test-llvm.cpp
fs/binfmt_elf: use PT_LOAD p_align values for static PIE
[linux.git] / tools / build / feature / test-llvm.cpp
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)
5
6 #if NUM_VERSION < 0x030900
7 # error "LLVM version too low"
8 #endif
9 int main()
10 {
11         llvm::errs() << "Hello World!\n";
12         llvm::llvm_shutdown();
13         return 0;
14 }
This page took 0.032409 seconds and 4 git commands to generate.