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