Skip to content

Commit fe32f36

Browse files
authored
Merge pull request swiftlang#9374 from benlangmuir/fmodule-related-to-pch-test
[test][clang] Workaround failure with module+pch
2 parents 9c297ac + c51e7d1 commit fe32f36

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/test/Modules/skip-func-def-odr-with-pch.cppm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// RUN: split-file %s %t
44
//
55
// Testing the behavior of `-fskip-odr-check-in-gmf`
6-
// RUN: %clang_cc1 -std=c++20 -DDIFFERENT -fskip-odr-check-in-gmf %t/A.cppm -emit-module-interface -o %t/A.pcm
7-
// RUN: %clang_cc1 -std=c++20 -fskip-odr-check-in-gmf -x c++-header %t/foo.h -emit-pch -o %t/foo.pch
8-
// RUN: %clang_cc1 -std=c++20 -fskip-odr-check-in-gmf -include-pch %t/foo.pch %t/B.cppm -emit-module-interface -o %t/B.pcm
6+
// RUN: %clang_cc1 -std=c++20 -DDIFFERENT -fskip-odr-check-in-gmf %t/A.cppm -emit-module-interface -o %t/A.pcm -fmodule-related-to-pch
7+
// RUN: %clang_cc1 -std=c++20 -fskip-odr-check-in-gmf -x c++-header %t/foo.h -emit-pch -o %t/foo.pch -fmodule-related-to-pch
8+
// RUN: %clang_cc1 -std=c++20 -fskip-odr-check-in-gmf -include-pch %t/foo.pch %t/B.cppm -emit-module-interface -o %t/B.pcm -fmodule-related-to-pch
99
// RUN: %clang_cc1 -std=c++20 -fskip-odr-check-in-gmf -fprebuilt-module-path=%t \
10-
// RUN: %t/C.cpp -verify -fsyntax-only
10+
// RUN: %t/C.cpp -verify -fsyntax-only -fmodule-related-to-pch
1111

1212
//--- foo.h
1313
#ifndef FOO_H

0 commit comments

Comments
 (0)