================
@@ -20709,6 +20709,18 @@ TEST_F(FormatTest, CatchExceptionReferenceBinding) {
TEST_F(FormatTest, CatchAlignArrayOfStructuresRightAlignment) {
auto Style = getLLVMStyle();
Style.AlignArrayOfStructures = FormatStyle::AIAS_Right;
+
+ verifyNoCrash("f({\n"
+ "table({}, table({{\"\", false}}, {}))\n"
+ "});",
+ Style);
+ verifyNoCrash("Bar a[1] = {\n"
+ " #define buf(a, b) \\\n"
+ " { #a, #b },\n"
+ " { Test, bar }\n"
+ "};",
+ Style);
----------------
owenca wrote:
```suggestion
verifyNoCrash("f({\n"
"table({}, table({{\"\", false}}, {}))\n"
"});",
Style);
```
https://github.com/llvm/llvm-project/pull/72520
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits