clang/tests/rhbz_1647130/test.sh
Timm Bäder 079bd3253f Update to 14.0.0
Resolves: rhbz#2061041
Resolves: rhbz#2061058
2022-05-05 07:00:25 +02:00

9 lines
285 B
Bash
Executable File

#!/bin/sh -eux
tmp_cpp=`mktemp -t XXXXX.cpp`
tmp_dir=`mktemp -d`
echo 'int main(int argc, char*argv[]) { while(argc--) new int(); return 0; }' > $tmp_cpp
scan-build -o $tmp_dir clang++ -c $tmp_cpp -o /dev/null
(scan-view --no-browser $tmp_dir/* & WPID=$! && sleep 10s && kill $WPID)