Summary: At equality check of fields without name the index of fields is compared. At determining the index of a field all fields of the parent context should be loaded from external source to find the field at all. Reviewers: a.sidorin, a_sidorin, r.stahl Reviewed By: a.sidorin Subscribers: martong, cfe-commits Differential Revision: https://reviews.llvm.org/D49796 llvm-svn: 339226
4 lines
263 B
C++
4 lines
263 B
C++
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/il.cpp
|
|
// RUN: %clang_cc1 -ast-merge %t.1.ast -fsyntax-only %s 2>&1 | FileCheck --allow-empty %s
|
|
// CHECK-NOT: warning: field '' declared with incompatible types in different translation units ('bool' vs. 'int')
|