From 5e20cdd81c44a443562a09007668ffdf76c455af Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 27 May 2015 18:47:56 +0000 Subject: Vendor import of clang trunk r238337: https://llvm.org/svn/llvm-project/cfe/trunk@238337 --- test/Modules/declare-use5.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Modules/declare-use5.cpp (limited to 'test/Modules/declare-use5.cpp') diff --git a/test/Modules/declare-use5.cpp b/test/Modules/declare-use5.cpp new file mode 100644 index 000000000000..b34be0f1104b --- /dev/null +++ b/test/Modules/declare-use5.cpp @@ -0,0 +1,9 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -fmodule-maps -fmodules-cache-path=%t -fmodules-decluse -fmodule-name=XN -I %S/Inputs/declare-use %s -verify + + +#include "sub.h" + +const int a = sub; + +// expected-no-diagnostics -- cgit v1.2.3