xref: /linux/tools/build/feature/test-llvm-perf.cpp (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1*206dcfcaSJames Clark // SPDX-License-Identifier: GPL-2.0
2*206dcfcaSJames Clark #include "llvm/Support/ManagedStatic.h"
3*206dcfcaSJames Clark #include "llvm/Support/raw_ostream.h"
4*206dcfcaSJames Clark 
5*206dcfcaSJames Clark #if LLVM_VERSION_MAJOR < 13
6*206dcfcaSJames Clark # error "Perf requires llvm-devel/llvm-dev version 13 or greater"
7*206dcfcaSJames Clark #endif
8*206dcfcaSJames Clark 
main()9*206dcfcaSJames Clark int main()
10*206dcfcaSJames Clark {
11*206dcfcaSJames Clark 	llvm::errs() << "Hello World!\n";
12*206dcfcaSJames Clark 	llvm::llvm_shutdown();
13*206dcfcaSJames Clark 	return 0;
14*206dcfcaSJames Clark }
15