Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include "llvm/Support/ManagedStatic.h"
0003 #include "llvm/Support/raw_ostream.h"
0004 #define NUM_VERSION (((LLVM_VERSION_MAJOR) << 16) + (LLVM_VERSION_MINOR << 8) + LLVM_VERSION_PATCH)
0005 
0006 #if NUM_VERSION < 0x030900
0007 # error "LLVM version too low"
0008 #endif
0009 int main()
0010 {
0011     llvm::errs() << "Hello World!\n";
0012     llvm::llvm_shutdown();
0013     return 0;
0014 }