brintos

brintos / llvm-project-archived public Read only

0
0
Text · 408 B · 4482713 Raw
16 lines · cpp
1// RUN: %clangxx %s -o %t && %run not %t 1 2>&1 | FileCheck %s2// UNSUPPORTED: lsan,ubsan,android3 4// FIXME: Implement.5// XFAIL: hwasan6 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 flag13  void *lib = dlopen("<arbitrary path>", RTLD_NOW | RTLD_DEEPBIND);14  return 0;15}16