Skip to content

Commit 1b6c1a3

Browse files
committed
[NFC] Improve test for clang/test/Modules/GH77953.cpp
Generally we'll use `-fsyntax-only` when it is sufficient and we'll use `expected-no-diagnostics` to test the behavior doesn't trigger any problems. This patch applies these two improvements to `clang/test/Modules/GH77953.cpp`.
1 parent 3d68217 commit 1b6c1a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/Modules/GH77953.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: split-file %s %t
55

66
// RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/a.cppm -o %t/a.pcm
7-
// RUN: %clang_cc1 -std=c++20 -fmodule-file=a=%t/a.pcm %t/b.cppm
7+
// RUN: %clang_cc1 -std=c++20 -fmodule-file=a=%t/a.pcm %t/b.cpp -fsyntax-only -verify
88

99
//--- a.cppm
1010
export module a;
@@ -22,7 +22,7 @@ struct a {
2222

2323
template struct a<>;
2424

25-
//--- b.cppm
25+
//--- b.cpp
26+
// expected-no-diagnostics
2627
import a;
27-
2828
template struct a<int>;

0 commit comments

Comments
 (0)