1// RUN: %clangxx %s -o %t && %run not %t 1 2>&1 | FileCheck %s
2// UNSUPPORTED: lsan,ubsan,android
3
4// FIXME: Implement.
5// XFAIL: hwasan
6
7#include <dlfcn.h>
8#include <stdio.h>
9#include <string>
10
11int main (int argc, char *argv[]) {
12 // CHECK: You are trying to dlopen a <arbitrary path> shared library with RTLD_DEEPBIND flag
13 void *lib = dlopen(file: "<arbitrary path>", RTLD_NOW | RTLD_DEEPBIND);
14 return 0;
15}
16

source code of compiler-rt/test/sanitizer_common/TestCases/Linux/deepbind.cpp