1 // Test that the preloaded runtime works without linking the static library.
3 // RUN: %clang %s -lstdc++ -o %t
4 // RUN: env LD_PRELOAD=%shared_libscudo not %run %t 2>&1 | FileCheck %s
5 // RUN: env LD_PRELOAD=%shared_minlibscudo not %run %t 2>&1 | FileCheck %s
7 // This way of setting LD_PRELOAD does not work with Android test runner.
12 int main(int argc
, char *argv
[]) {
21 // CHECK: ERROR: invalid chunk state