summaryrefslogtreecommitdiffstats
path: root/config.tests/direct_extern_access/lib.h
blob: 1a9c3c55337edb78734babe443efb231205a8b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (C) 2022 Intel Corporation.
// SPDX-License-Identifier: MIT

// This is the test found in https://sourceware.org/bugzilla/show_bug.cgi?id=29087

#ifdef BUILD
#  define LIB_API __attribute__((visibility("protected")))
#else
#  define LIB_API __attribute__((visibility("default")))
#endif

struct LIB_API S
{
    virtual ~S();
    virtual void *f();
    static void *ptr;
};