brintos

brintos / llvm-project-archived public Read only

0
0
Text · 260 B · 182a1ae Raw
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