Version 5.1.2
[gromacs/AngularHB.git] / cmake / TestClangVersion.c
blobf47c7774e2d3c6a2b8da51761a18144e3b222af7
1 int main()
3 /* This detects 3.0 versions for both C and C++ clang. It detects the
4 * version of the LLVM back end, and not (for example) the Apple clang
5 * version number (which might be 4.1 or some number based on its
6 * "compatibility with gcc 4.2.1," even though the LLVM back end is
7 * 3.0!).
9 * If/when we have time or user complaints, we can maybe ban earlier
10 * versions of clang, but we don't actually know there's a problem
11 * with them at the time of this commit.
13 #if (__clang_major__ == 3) && (__clang_minor__ == 0)
14 return 0;
15 #else
16 #error clang version information not found
17 #endif