Skip to content

Commit

Permalink
[C++20][Modules] Fix a testcase warning on Windows [NFC].
Browse files Browse the repository at this point in the history
As reported, using "-DTDIR=%t" with a path name of 'C:\Users\...' causes
a warning to be emitted about the use of \U without following hex digits.

Since the value is only required for the FileCheck cases resolve this by
omitting the -D from the compile lines.
  • Loading branch information
iains committed Apr 3, 2022
1 parent f02a0a6 commit 1f0b8ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/test/Modules/cxx20-hu-04.cpp
Expand Up @@ -19,10 +19,10 @@
// RUN: FileCheck --check-prefix=CHECK-HU2 %s -DTDIR=%t

// RUN: %clang_cc1 -std=c++20 -emit-module-interface importer-01.cpp \
// RUN: -fmodule-file=hu-02.pcm -o B.pcm -DTDIR=%t -verify
// RUN: -fmodule-file=hu-02.pcm -o B.pcm -verify

// RUN: %clang_cc1 -std=c++20 -emit-module-interface importer-02.cpp \
// RUN: -fmodule-file=hu-02.pcm -o C.pcm -DTDIR=%t -Rmodule-import 2>&1 | \
// RUN: -fmodule-file=hu-02.pcm -o C.pcm -Rmodule-import 2>&1 | \
// RUN: FileCheck --check-prefix=CHECK-IMP-HU2 %s -DTDIR=%t

//--- hu-01.h
Expand Down

0 comments on commit 1f0b8ba

Please sign in to comment.