aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/emit-module-interface-pcm-input.cpp
blob: 9df7222068d2039e535a8e16e03ad27da9254cd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: rm -rf %t
// RUN: split-file %s %t
// RUN: cd %t

// Related to issue #132692
// Verify that clang_cc1 doesn't crash when trying to generate a module
// interface from an alreay precompiled module (`.pcm`).
// RUN: %clang_cc1 -std=c++20 -emit-module-interface a.cppm -o a.pcm
// RUN: not %clang_cc1 -std=c++20 -emit-module-interface a.pcm
// RUN: not %clang_cc1 -std=c++20 -emit-reduced-module-interface a.pcm

//--- a.cppm
export module A;