summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/pr27513.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-04-26 23:40:43 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-04-26 23:40:43 +0000
commitd49941b726815de509ff770227856f8d2a33992a (patch)
tree43bcd11096ea1bc1d9afa2ea5591b79fd567fd22 /clang/test/Modules/pr27513.cpp
parentc2bf63d29da43fa765189ec7b250bcb451b5934b (diff)
downloadbcm5719-llvm-d49941b726815de509ff770227856f8d2a33992a.tar.gz
bcm5719-llvm-d49941b726815de509ff770227856f8d2a33992a.zip
PR27513: When determining which declaration to put into an exported lookup
table for a module / PCH, never map from a normal declaration of a class to an injected-class-name declaration (or vice versa). Those declarations live in distinct lookup tables and should not be confused. We really shouldn't be using a CXXRecordDecl to represent an injected-class-name in the first place; I've filed PR27532 so we don't forget. llvm-svn: 267632
Diffstat (limited to 'clang/test/Modules/pr27513.cpp')
-rw-r--r--clang/test/Modules/pr27513.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Modules/pr27513.cpp b/clang/test/Modules/pr27513.cpp
new file mode 100644
index 00000000000..28fbe5bd825
--- /dev/null
+++ b/clang/test/Modules/pr27513.cpp
@@ -0,0 +1,7 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -std=c++11 -I%S/Inputs/PR27513 -verify %s
+// RUN: %clang_cc1 -std=c++11 -fmodules -fmodule-map-file=%S/Inputs/PR27513/module.modulemap -fmodules-cache-path=%t -I%S/Inputs/PR27513 -verify %s
+
+#include "Inputs/PR27513/a.h"
+
+//expected-no-diagnostics
OpenPOWER on IntegriCloud