summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/textual-headers.cpp
blob: d1be8ad0321aa9c479dd9128eab09e074b8f8760 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodule-maps -fmodules-cache-path=%t -fmodules-strict-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fmodules-strict-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify

#define GIMME_A_K
#include "k.h"

#define GIMME_AN_L
#include "l.h" // expected-error {{module XG does not depend on a module exporting 'l.h'}}

const int g = k + l;
OpenPOWER on IntegriCloud