summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/PR27513/a.h
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/Inputs/PR27513/a.h
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/Inputs/PR27513/a.h')
-rw-r--r--clang/test/Modules/Inputs/PR27513/a.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/PR27513/a.h b/clang/test/Modules/Inputs/PR27513/a.h
new file mode 100644
index 00000000000..7eecbf4773d
--- /dev/null
+++ b/clang/test/Modules/Inputs/PR27513/a.h
@@ -0,0 +1,5 @@
+#include "b.h"
+
+inline void f() { basic_string<char> s; }
+
+#include "c.h"
OpenPOWER on IntegriCloud