mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-15 12:39:19 +00:00
[modules] Add forgotten test case to r265597.
llvm-svn: 265599
This commit is contained in:
parent
b41ddae3a2
commit
59f6586da0
2
clang/test/Modules/Inputs/PR27186/Rtypes.h
Normal file
2
clang/test/Modules/Inputs/PR27186/Rtypes.h
Normal file
@ -0,0 +1,2 @@
|
||||
#include <stddef.h>
|
||||
typedef struct timespec timespec_t;
|
5
clang/test/Modules/Inputs/PR27186/module.modulemap
Normal file
5
clang/test/Modules/Inputs/PR27186/module.modulemap
Normal file
@ -0,0 +1,5 @@
|
||||
module "Rtypes.h" { header "Rtypes.h" }
|
||||
module a [extern_c] {
|
||||
header "stddef.h"
|
||||
header "time.h"
|
||||
}
|
1
clang/test/Modules/Inputs/PR27186/stddef.h
Normal file
1
clang/test/Modules/Inputs/PR27186/stddef.h
Normal file
@ -0,0 +1 @@
|
||||
|
1
clang/test/Modules/Inputs/PR27186/time.h
Normal file
1
clang/test/Modules/Inputs/PR27186/time.h
Normal file
@ -0,0 +1 @@
|
||||
struct timespec;
|
7
clang/test/Modules/pr27186.cpp
Normal file
7
clang/test/Modules/pr27186.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
// RUN: rm -rf %t
|
||||
// RUN: %clang_cc1 -std=c++11 -I%S/Inputs/PR27186 -I%S/Inputs/PR27186/subdir/ -verify %s
|
||||
// RUN: %clang_cc1 -nostdsysteminc -std=c++11 -fmodules -fmodule-map-file=%S/Inputs/PR27186/module.modulemap -fmodules-cache-path=%t -I%S/Inputs/PR27186/ -verify %s
|
||||
|
||||
#include "Rtypes.h"
|
||||
|
||||
// expected-no-diagnostics
|
Loading…
x
Reference in New Issue
Block a user