mirror of
https://github.com/opnsense/src.git
synced 2026-03-20 09:52:44 -04:00
12 lines
668 B
C++
12 lines
668 B
C++
// RUN: rm -rf %t
|
|
|
|
// RUN: not %clang_cc1 -fmodules -fmodule-name=file -I%S/Inputs/preprocess -x c++-module-map %S/Inputs/preprocess/module.modulemap -E 2>&1 | FileCheck %s --check-prefix=MISSING-FWD
|
|
// MISSING-FWD: module 'fwd' is needed
|
|
|
|
// RUN: %clang_cc1 -fmodules -fmodule-name=file -fmodules-cache-path=%t -I%S/Inputs/preprocess -x c++-module-map %S/Inputs/preprocess/module.modulemap -E | FileCheck %s
|
|
// CHECK: # 1 "<module-includes>"
|
|
// CHECK: # 1 "{{.*}}file.h" 1
|
|
// CHECK: struct __FILE;
|
|
// CHECK: #pragma clang module import fwd /* clang -E: implicit import for #include "fwd.h" */
|
|
// CHECK: typedef struct __FILE FILE;
|
|
// CHECK: # 2 "<module-includes>" 2
|