================
@@ -204,3 +204,50 @@ union PR4517_u {
const union PR4517_u u1 = {4.0f};
const union PR4517_u u2 = u1; // no-warning
const union PR4517_u u3 = {u1.y}; // expected-error {{initializer element is
not a compile-time constant}}
+
+int PR192471_1 = {{}, {}, {}}; // expected-warning {{too many braces around
scalar initializer}} expected-warning {{excess elements in scalar initializer}}
+char PR192471_2[] = {
+ "1110",
+#embed __FILE__ // expected-warning {{#embed is a C23 extension}} \
+ expected-warning {{excess elements in char array
initializer}}
+};
+char PR192471_3[1] = {
+#embed __FILE__ limit(1) // expected-warning {{#embed is a C23 extension}}
----------------
tobiichi3227 wrote:
OK.
I add this to tests.
https://github.com/llvm/llvm-project/pull/192471
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits