Skip to content

Commit

Permalink
[NFC] Improve test for clang/test/Modules/GH77953.cpp
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
ChuanqiXu9 committed Jan 16, 2024
1 parent 3d68217 commit 1b6c1a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang/test/Modules/GH77953.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// RUN: split-file %s %t

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

//--- a.cppm
export module a;
Expand All @@ -22,7 +22,7 @@ struct a {

template struct a<>;

//--- b.cppm
//--- b.cpp
// expected-no-diagnostics
import a;

template struct a<int>;

0 comments on commit 1b6c1a3

Please sign in to comment.