Test files I forgot to svn add in r220448.

llvm-svn: 220449
This commit is contained in:
Richard Smith 2014-10-22 23:52:04 +00:00
parent 306d892076
commit 5974ee637e
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#ifdef GIMME_A_K
#ifndef K_H
#define K_H
const int k = 42;
#endif
#endif

View File

@ -0,0 +1,8 @@
#ifdef GIMME_AN_L
#ifndef L_H
#define L_H
const int l = 42;
#endif
#endif

View File

@ -0,0 +1,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;