github.com/ebitengine/purego@v0.8.0-alpha.2.0.20240512170805-6cd12240d332/testdata/libdlnested/nested_test.cpp (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // SPDX-FileCopyrightText: 2023 The Ebitengine Authors
     3  
     4  #include <dlfcn.h>
     5  
     6  struct nested_libdl
     7  {
     8      nested_libdl() {
     9          // Fails for sure because a symbol cannot be named like this 
    10          dlsym(RTLD_DEFAULT, "@/*<>");
    11      }
    12  };
    13  
    14  static nested_libdl test;