Debian Codegraph @

clang/test/Modules/import-once.m

raw
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -fmodules -fmodule-name=ImportOnce -fimplicit-module-maps -fmodules-cache-path=%t -F %S/Inputs/import-once %s
3
4 // Test #import-ed headers are processed only once, even without header guards.
5 // Dependency graph is
6 //
7 // Unrelated ImportOnce
8 // ^ ^ ^
9 // \ / |
10 // IndirectImporter |
11 // ^ |
12 // \ |
13 // import-once.m
14 #import <IndirectImporter/IndirectImporter.h>
15 #import <ImportOnce/ImportOnce.h>