Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <cstdio>
0003 #include "llvm/Config/llvm-config.h"
0004 
0005 #define NUM_VERSION (((LLVM_VERSION_MAJOR) << 16) + (LLVM_VERSION_MINOR << 8) + LLVM_VERSION_PATCH)
0006 #define pass int main() {printf("%x\n", NUM_VERSION); return 0;}
0007 
0008 #if NUM_VERSION >= 0x030900
0009 pass
0010 #else
0011 # error This LLVM is not tested yet.
0012 #endif