diff options
Diffstat (limited to 'config.tests/no_direct_extern_access/lib.cpp')
-rw-r--r-- | config.tests/no_direct_extern_access/lib.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config.tests/no_direct_extern_access/lib.cpp b/config.tests/no_direct_extern_access/lib.cpp new file mode 100644 index 0000000000..cf3b18bb38 --- /dev/null +++ b/config.tests/no_direct_extern_access/lib.cpp @@ -0,0 +1,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; } |