add bug 903709 testcase

This commit is contained in:
Sylvestre Ledru 2018-08-15 16:24:04 +02:00
parent 00d64dc8fb
commit 747013fdbb

View File

@ -35,6 +35,14 @@ clang-$VERSION foo.c
echo '#include <stddef.h>' > foo.c
clang-$VERSION -c foo.c
# bug 903709
echo '#include <stdatomic.h>
void increment(atomic_size_t *arg) {
atomic_fetch_add(arg, 1);
} ' > foo.c
clang-$VERSION -v -c foo.c
echo "#include <fenv.h>" > foo.cc
NBLINES=$(clang++-$VERSION -P -E foo.cc|wc -l)
if test $NBLINES -lt 100; then