xref: /llvm-project/clang/test/PCH/typo3.cpp (revision ebd9a2477e69ed35b83256ae93cc7e069f5a37c4)
1 // RUN: not %clang_cc1 -emit-pch %s -o %t.pch 2>&1 | FileCheck %s
2 
3 struct S {
4   // Make sure TypoExprs in default init exprs are corrected before serializing
5   // in PCH.
6   int y = bar;
7   // CHECK: use of undeclared identifier 'bar'
8 };
9