[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / Driver / cxx20-header-units-01.cpp
blobd4c3a02d4867d052322d962975b98066a6dc6587
1 // RUN: %clang -### -std=c++20 -xc++-user-header foo.h 2>&1 | \
2 // RUN: FileCheck -check-prefix=CHECK-USER %s
4 // RUN: %clang -### -std=c++20 -xc++-system-header vector 2>&1 | \
5 // RUN: FileCheck -check-prefix=CHECK-SYSTEM %s
7 // RUN: %clang -### -std=c++20 \
8 // RUN: -xc++-header-unit-header %/S/Inputs/header-unit-01.hh 2>&1 | \
9 // RUN: FileCheck -check-prefix=CHECK-ABS %s -DTDIR=%/S/Inputs
11 // CHECK-USER: "-emit-header-unit"
12 // CHECK-USER-SAME: "-o" "foo.pcm"
13 // CHECK-USER-SAME: "-x" "c++-user-header" "foo.h"
14 // CHECK-SYSTEM: "-emit-header-unit"
15 // CHECK-SYSTEM-SAME: "-o" "vector.pcm"
16 // CHECK-SYSTEM-SAME: "-x" "c++-system-header" "vector"
17 // CHECK-ABS: "-emit-header-unit"
18 // CHECK-ABS-SAME: "-o" "header-unit-01.pcm"
19 // CHECK-ABS-SAME: "-x" "c++-header-unit-header" "[[TDIR]]/header-unit-01.hh"