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

Summary: We forgot to initialize the NumExpr member in one of the constructors, which leads crashes in preamble serialization. Reviewers: sammccall Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D78284
14 lines
254 B
C++
14 lines
254 B
C++
// Test with pch.
|
|
// RUN: %clang_cc1 -emit-pch -frecovery-ast -fallow-pch-with-compiler-errors -o %t %s
|
|
// RUN: %clang_cc1 -include-pch %t -fno-validate-pch -emit-llvm -o - %s
|
|
|
|
#ifndef HEADER
|
|
#define HEADER
|
|
|
|
int func(int);
|
|
int s = func();
|
|
|
|
#else
|
|
|
|
#endif
|