[lit] Make TestConvenienceVariables a cpp file
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 19 Dec 2018 17:10:21 +0000 (17:10 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 19 Dec 2018 17:10:21 +0000 (17:10 +0000)
commitb5c1d07920acd49cf699b149beea345932c419ec
tree3dea2cba423f9e9590e041e788770f4e0c195dcc
parent798c5982a032e4e89ead6f71b0f9357900f4eaba
[lit] Make TestConvenienceVariables a cpp file

The build.py script always runs the compiler in C++ mode, regardless of
the file extension. This results in mangled names presented to the
linker which in turn cannot find the printf symbol.

While we figure out how to solve this issue I've turned the source file
into a cpp file and added extern c. This should unbreak the bots.

llvm-svn: 349642
lldb/lit/Driver/Inputs/convenience.in
lldb/lit/Driver/Inputs/hello.c [deleted file]
lldb/lit/Driver/Inputs/hello.cpp [new file with mode: 0644]
lldb/lit/Driver/TestConvenienceVariables.test