mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-28 07:49:01 -04:00

Specifically, we want to warn only for direct layering violations for the modules we are calling clang on. This temporarily unblocks http://llvm-reviews.chandlerc.com/D2374 Once that is in, we'll also want to investigate whether to check the layering in the build step of modules that we build transitively. llvm-svn: 197021
8 lines
291 B
C++
8 lines
291 B
C++
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodule-maps -fmodules-cache-path=%t -fmodules-decluse -fmodule-name=XH -I %S/Inputs/declare-use %s -verify
|
|
|
|
#include "h.h"
|
|
#include "e.h"
|
|
#include "f.h" // expected-error {{module XH does not depend on a module exporting 'f.h'}}
|
|
const int h2 = h1+e+f;
|