summaryrefslogtreecommitdiffstats
path: root/config.tests/no_direct_extern_access/lib.cpp
blob: cf3b18bb38b0393b7c5d5f3f01474348ca8e6202 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright (C) 2022 Intel Corporation.
// SPDX-License-Identifier: MIT

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

#define BUILD
#include "lib.h"

void *S::ptr = nullptr;
S::~S() { }
void *S::f() { return ptr; }