You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
260 B

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