[modules] Add forgotten test case to r265597.

llvm-svn: 265599
This commit is contained in:
Vassil Vassilev 2016-04-06 20:58:12 +00:00
parent b41ddae3a2
commit 59f6586da0
5 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,2 @@
#include <stddef.h>
typedef struct timespec timespec_t;

View File

@ -0,0 +1,5 @@
module "Rtypes.h" { header "Rtypes.h" }
module a [extern_c] {
header "stddef.h"
header "time.h"
}

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
struct timespec;

View 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