File: nested_test.cpp

package info (click to toggle)
golang-github-ebitengine-purego 0.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 844 kB
  • sloc: asm: 10,607; ansic: 631; cpp: 8; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 302 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2023 The Ebitengine Authors

#include <dlfcn.h>

struct nested_libdl
{
    nested_libdl() {
        // Fails for sure because a symbol cannot be named like this 
        dlsym(RTLD_DEFAULT, "@/*<>");
    }
};

static nested_libdl test;