Skip to content

Commit fc4e7b9

Browse files
committedApr 6, 2016
[modules] Add forgotten test case to r265597.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265599 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent fa2811a commit fc4e7b9

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed
 

‎test/Modules/Inputs/PR27186/Rtypes.h

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include <stddef.h>
2+
typedef struct timespec timespec_t;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module "Rtypes.h" { header "Rtypes.h" }
2+
module a [extern_c] {
3+
header "stddef.h"
4+
header "time.h"
5+
}

‎test/Modules/Inputs/PR27186/stddef.h

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

‎test/Modules/Inputs/PR27186/time.h

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
struct timespec;

‎test/Modules/pr27186.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// RUN: rm -rf %t
2+
// RUN: %clang_cc1 -std=c++11 -I%S/Inputs/PR27186 -I%S/Inputs/PR27186/subdir/ -verify %s
3+
// 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
4+
5+
#include "Rtypes.h"
6+
7+
// expected-no-diagnostics

0 commit comments

Comments
 (0)