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