mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 10:26:06 +00:00

This was regressed in ca619613801233ef2def8c3cc7d311d5ed0033cb. As we attached InitExprs as-is to the AST, without performing transformations. Differential Revision: https://reviews.llvm.org/D142187
9 lines
236 B
C++
9 lines
236 B
C++
// RUN: not %clang_cc1 -emit-pch %s -o %t.pch 2>&1 | FileCheck %s
|
|
|
|
struct S {
|
|
// Make sure TypoExprs in default init exprs are corrected before serializing
|
|
// in PCH.
|
|
int y = bar;
|
|
// CHECK: use of undeclared identifier 'bar'
|
|
};
|