Skip to content
Snippets Groups Projects
Commit c1447467 authored by Richard Smith's avatar Richard Smith
Browse files

Test files I forgot to svn add in r220448.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220449 91177308-0d34-0410-b5e6-96231b3b80d8
parent 180484ac
No related branches found
No related tags found
No related merge requests found
#ifdef GIMME_A_K
#ifndef K_H
#define K_H
const int k = 42;
#endif
#endif
#ifdef GIMME_AN_L
#ifndef L_H
#define L_H
const int l = 42;
#endif
#endif
// 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;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment