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 58ff884 commit 92e5857Copy full SHA for 92e5857
clang/test/AST/Interp/records.cpp
@@ -1191,5 +1191,17 @@ namespace IndirectFieldInit {
1191
};
1192
constexpr Nested4 N4{};
1193
static_assert(N4.first == 123, "");
1194
+
1195
+ struct S {
1196
+ struct {
1197
+ int x, y;
1198
+ };
1199
1200
+ constexpr S(int x_, int y_) : x(x_), y(y_) {}
1201
1202
1203
+ constexpr S s(1, 2);
1204
+ static_assert(s.x == 1 && s.y == 2);
1205
1206
#endif
1207
}
0 commit comments