We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa2811a commit fc4e7b9Copy full SHA for fc4e7b9
test/Modules/Inputs/PR27186/Rtypes.h
@@ -0,0 +1,2 @@
1
+#include <stddef.h>
2
+typedef struct timespec timespec_t;
test/Modules/Inputs/PR27186/module.modulemap
@@ -0,0 +1,5 @@
+module "Rtypes.h" { header "Rtypes.h" }
+module a [extern_c] {
3
+ header "stddef.h"
4
+ header "time.h"
5
+}
test/Modules/Inputs/PR27186/stddef.h
@@ -0,0 +1 @@
+
test/Modules/Inputs/PR27186/time.h
+struct timespec;
test/Modules/pr27186.cpp
@@ -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"
6
7
+// expected-no-diagnostics
0 commit comments