diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-04-26 23:40:43 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-04-26 23:40:43 +0000 |
commit | d49941b726815de509ff770227856f8d2a33992a (patch) | |
tree | 43bcd11096ea1bc1d9afa2ea5591b79fd567fd22 /clang/test/Modules/pr27513.cpp | |
parent | c2bf63d29da43fa765189ec7b250bcb451b5934b (diff) | |
download | bcm5719-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.cpp | 7 |
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 |