diff options
| -rw-r--r-- | clang-tools-extra/test/pp-trace/Inputs/ModularizeList.txt | 3 | ||||
| -rw-r--r-- | clang-tools-extra/test/pp-trace/Inputs/module.map | 15 | ||||
| -rw-r--r-- | clang-tools-extra/test/pp-trace/pp-trace-modules.cpp | 11 |
3 files changed, 29 insertions, 0 deletions
diff --git a/clang-tools-extra/test/pp-trace/Inputs/ModularizeList.txt b/clang-tools-extra/test/pp-trace/Inputs/ModularizeList.txt new file mode 100644 index 00000000000..41a6217ea97 --- /dev/null +++ b/clang-tools-extra/test/pp-trace/Inputs/ModularizeList.txt @@ -0,0 +1,3 @@ +Level1A.h +Level1B.h +Level2A.h diff --git a/clang-tools-extra/test/pp-trace/Inputs/module.map b/clang-tools-extra/test/pp-trace/Inputs/module.map new file mode 100644 index 00000000000..bb224a907bf --- /dev/null +++ b/clang-tools-extra/test/pp-trace/Inputs/module.map @@ -0,0 +1,15 @@ +// module.map
+// Generated by: modularize -module-map-path=module.map ModularizeList.txt
+
+module Level1A {
+ header "Level1A.h"
+ export *
+}
+module Level1B {
+ header "Level1B.h"
+ export *
+}
+module Level2A {
+ header "Level2A.h"
+ export *
+}
diff --git a/clang-tools-extra/test/pp-trace/pp-trace-modules.cpp b/clang-tools-extra/test/pp-trace/pp-trace-modules.cpp new file mode 100644 index 00000000000..811b33bdd67 --- /dev/null +++ b/clang-tools-extra/test/pp-trace/pp-trace-modules.cpp @@ -0,0 +1,11 @@ +// RUN: pp-trace -ignore FileChanged,MacroDefined %s -x objective-c++ -undef -target x86_64 -std=c++11 -fmodules -fcxx-modules -fmodules-cache-path=%t -I%S -I%S/Input | FileCheck --strict-whitespace %s + +@import Level1A;
+ +// CHECK: ---
+// CHECK-NEXT: - Callback: moduleImport
+// CHECK-NEXT: ImportLoc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:3:2"
+// CHECK-NEXT: Path: [{Name: Level1A, Loc:"{{.*}}{{[/\\]}}pp-trace-modules.cpp:3:9"}]
+// CHECK-NEXT: Imported: Level1A
+// CHECK-NEXT: - Callback: EndOfMainFile
+// CHECK-NEXT: ...
|

