mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-14 13:28:35 +00:00
Adjust the testsuite after various changes (rpass, libclang, polly lib, etc)
This commit is contained in:
parent
b2438aba01
commit
8380a94581
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -2,6 +2,8 @@ llvm-toolchain-13 (1:13.0.0-2) unstable; urgency=medium
|
|||||||
|
|
||||||
* Fix the libclang detection in cmake
|
* Fix the libclang detection in cmake
|
||||||
(Closes: #994827)
|
(Closes: #994827)
|
||||||
|
* Adjust the testsuite after various changes
|
||||||
|
(rpass, libclang, polly lib, etc)
|
||||||
|
|
||||||
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 03 Oct 2021 22:38:18 +0200
|
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 03 Oct 2021 22:38:18 +0200
|
||||||
|
|
||||||
|
13
debian/qualify-clang.sh
vendored
13
debian/qualify-clang.sh
vendored
@ -1250,9 +1250,18 @@ fi
|
|||||||
echo "
|
echo "
|
||||||
int foo(int x, int y) __attribute__((always_inline));
|
int foo(int x, int y) __attribute__((always_inline));
|
||||||
int foo(int x, int y) { return x + y; }
|
int foo(int x, int y) { return x + y; }
|
||||||
int bar(int j) { return foo(j, j - 2); }" > foo.cc
|
int bar(int j) { return foo(j, j - 2); }
|
||||||
|
int sum = 0;
|
||||||
|
|
||||||
|
int main(int argc, const char *argv[]) {
|
||||||
|
for (int i = 0; i < 30; i++)
|
||||||
|
bar(argc);
|
||||||
|
return sum;
|
||||||
|
}
|
||||||
|
|
||||||
|
" > foo.cc
|
||||||
clang-$VERSION -O2 -Rpass=inline foo.cc -c &> foo.log
|
clang-$VERSION -O2 -Rpass=inline foo.cc -c &> foo.log
|
||||||
if ! grep -q "cost=always" foo.log; then
|
if ! grep -q -E "(inlined into main with|cost=always)" foo.log; then
|
||||||
echo "-Rpass fails"
|
echo "-Rpass fails"
|
||||||
cat foo.log
|
cat foo.log
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user