From 5a7d283d4e00bc4822c7b0226e593c344c8f6050 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 15 Jan 2019 21:47:27 +0100 Subject: [PATCH] add a test for bug https://bugs.llvm.org/show_bug.cgi\?id\=40059 --- debian/qualify-clang.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index 85b8eca4..5b6765fb 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -34,6 +34,13 @@ if llvm-config-$VERSION --cxxflags | grep " \-W"; then exit 1 fi +# Test https://bugs.llvm.org/show_bug.cgi?id=40059 +nm /usr/lib/llvm-$VERSION/lib/libLLVMBitWriter.a &> foo.log +if grep "File format not recognized" foo.log; then + echo "nm libLLVMBitWriter.a contains 'File format not recognized'" + exit 1 +fi + echo '#include int main() { char *x = (char*)malloc(10 * sizeof(char*));