Kadir Cetinkaya ebd9a2477e
[clang] Fix typos in member initializers
This was regressed in ca619613801233ef2def8c3cc7d311d5ed0033cb. As we
attached InitExprs as-is to the AST, without performing transformations.

Differential Revision: https://reviews.llvm.org/D142187
2023-01-20 15:20:31 +01:00

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'
};