[msan] Compile the libatomic.c test with a C compiler
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Mon, 3 Aug 2020 09:31:31 +0000 (10:31 +0100)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Mon, 3 Aug 2020 09:51:35 +0000 (10:51 +0100)
commit03affa8099cba3876aca209daa213dcb880bc34a
tree08e6f6edcfbd6453a76d78f01a245c45723c61c4
parent895878f4568d3c5fe470bd811c2dfdbbe285e5aa
[msan] Compile the libatomic.c test with a C compiler

Otherwise we end up compiling in C++ mode and on FreeBSD
/usr/include/stdatomic.h is not compatible with C++ since it uses _Bool.

Reviewed By: guiand, eugenis, vitalybuka, emaste

Differential Revision: https://reviews.llvm.org/D84510
compiler-rt/test/msan/libatomic.c