xref: /llvm-project/compiler-rt/test/fuzzer/dso.test (revision 8a86860207f0d5c794a2b8c0b384001710e5d036)
1# FIXME: Disabled on Windows because -fPIC cannot be used to compile for Windows.
2UNSUPPORTED: target={{.*windows.*}}
3RUN: %cpp_compiler %S/DSO1.cpp -fPIC %ld_flags_rpath_so1 -shared -o %dynamiclib1
4RUN: %cpp_compiler %S/DSO2.cpp -fPIC %ld_flags_rpath_so2 -shared -o %dynamiclib2
5RUN: %cpp_compiler %S/DSOTestMain.cpp %S/DSOTestExtra.cpp %ld_flags_rpath_exe1 %ld_flags_rpath_exe2 -o %t-DSOTest
6
7RUN: not %run %t-DSOTest 2>&1 | FileCheck %s --check-prefix=DSO
8DSO: INFO: Loaded 3 modules
9DSO: BINGO
10