mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-12 11:27:43 +00:00
add a test for bug https://bugs.llvm.org/show_bug.cgi\?id\=40059
This commit is contained in:
parent
2630cd44ad
commit
5a7d283d4e
7
debian/qualify-clang.sh
vendored
7
debian/qualify-clang.sh
vendored
@ -34,6 +34,13 @@ if llvm-config-$VERSION --cxxflags | grep " \-W"; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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 <stdlib.h>
|
echo '#include <stdlib.h>
|
||||||
int main() {
|
int main() {
|
||||||
char *x = (char*)malloc(10 * sizeof(char*));
|
char *x = (char*)malloc(10 * sizeof(char*));
|
||||||
|
Loading…
Reference in New Issue
Block a user