Add test for using 32-bit sanitizers on 64-bit host

This commit is contained in:
Tom Stellard 2023-02-27 18:20:52 +00:00
commit fea3e11f64
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,38 @@
summary: compiler-rt test for rhbz#1678240
test: "$WITH_SCL ./test.sh"
require: []
framework: shell
tier: 1
component:
- llvm-toolset
- compiler-rt
adjust:
# Common requirements when LLVM is not SCL-ized
- enabled: false
because: "Test applicable only on x86_64 arch"
when: arch != x86_64
- require+:
- clang
- compiler-rt
- compiler-rt.i686
- glibc-devel.i686
when: collection is not defined
# Requirements for SCL-ized LLVM
- require+:
- llvm-toolset-13.0-clang
- llvm-toolset-13.0-compiler-rt
- llvm-toolset-13.0-compiler-rt.i686
when: collection == llvm-toolset-13.0
- require+:
- llvm-toolset-14.0-clang
- llvm-toolset-14.0-compiler-rt
- llvm-toolset-14.0-compiler-rt.i686
when: collection == llvm-toolset-14.0
- require+:
- llvm-toolset-15.0-clang
- llvm-toolset-15.0-compiler-rt
- llvm-toolset-15.0-compiler-rt.i686
when: collection == llvm-toolset-15.0

View file

@ -0,0 +1 @@
int main(){return 0;}

3
cross-compile-i686/test.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh -eux
clang -m32 -fsanitize=address test.c