Files
clang-p2996/clang/test/PCH/typo3.cpp
Kadir Cetinkaya ebd9a2477e [clang] Fix typos in member initializers
This was regressed in ca61961380. 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'
};