You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
558 B

// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fmodule-name=ImportOnce -fimplicit-module-maps -fmodules-cache-path=%t -F %S/Inputs/import-once %s
// Test #import-ed headers are processed only once, even without header guards.
// Dependency graph is
//
// Unrelated ImportOnce
// ^ ^ ^
// \ / |
// IndirectImporter |
// ^ |
// \ |
// import-once.m
#import <IndirectImporter/IndirectImporter.h>
#import <ImportOnce/ImportOnce.h>