We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ce0335 commit f74f86cCopy full SHA for f74f86c
clang/test/SemaCXX/attr-section.cpp
@@ -77,6 +77,13 @@ struct A {
77
static constexpr B b{nullptr}; // This used to crash.
78
};
79
80
+struct B1 { void *p; };
81
+template <class T>
82
+struct A1 {
83
+ __attribute__((section("non_trivial_ctor")))
84
+ static constexpr B1 b{nullptr}; // no diagnostic expected
85
+};
86
+
87
template <class T>
88
struct C {
89
__attribute__((section("non_trivial_ctor")))
0 commit comments