9 lines · cpp
1struct Bar {};2struct Foo {3 void method(Bar bar) {}4};5void NoCrash(Foo t) {6 t.method({.abc = 50}); // CHECK: field designator 'abc' does not refer to any field in type 'Bar'7}8// RUN: c-index-test -index-file %s -Xclang -frecovery-ast 2>&1 | FileCheck %s9