Debian Codegraph @

clang/test/SemaCXX/unique_object_duplication.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -Wunique-object-duplication -Wno-unused-value \
2 // RUN: -verify -triple=x86_64-pc-linux-gnu %s
3 // RUN: %clang_cc1 -fsyntax-only -Wunique-object-duplication -Wno-unused-value \
4 // RUN: -verify=hidden -triple=x86_64-pc-linux-gnu -fvisibility=hidden %s
5 // RUN: %clang_cc1 -fsyntax-only -Wunique-object-duplication -Wno-unused-value \
6 // RUN: -verify=windows -triple=x86_64-windows-msvc -DWINDOWS_TEST -fdeclspec %s
7
8 #include "unique_object_duplication.h"
9
10 // Everything in these namespaces here is defined in the cpp file,
11 // so won't get duplicated
12
13 namespace GlobalTest {
14 float Test::allowedStaticMember1 = 2.3;
15 }
16
17 bool disallowed4 = true;
18 constexpr inline bool disallowed5 = true;