summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/templates-right.h
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-09-03 02:33:22 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-09-03 02:33:22 +0000
commit73b21d8fa15295bca14f2ef7328cc295ab7761f3 (patch)
tree71ccbbabdde058c21d7eb5c5ee5e6a4ca8f32459 /clang/test/Modules/Inputs/templates-right.h
parenta1148b217335234b17ea539dd77c0454160b7fc2 (diff)
downloadbcm5719-llvm-73b21d8fa15295bca14f2ef7328cc295ab7761f3.tar.gz
bcm5719-llvm-73b21d8fa15295bca14f2ef7328cc295ab7761f3.zip
[modules] Use DeclContext::equals rather than == on DeclContext* when
determining whether a declaration is out of line, instead of assuming that the semantic and lexical DeclContext will be the same declaration whenever they're the same entity. This fixes behavior of declarations within merged classes and enums. llvm-svn: 217008
Diffstat (limited to 'clang/test/Modules/Inputs/templates-right.h')
-rw-r--r--clang/test/Modules/Inputs/templates-right.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/templates-right.h b/clang/test/Modules/Inputs/templates-right.h
index 5907cbca73e..daea97b86b8 100644
--- a/clang/test/Modules/Inputs/templates-right.h
+++ b/clang/test/Modules/Inputs/templates-right.h
@@ -43,3 +43,7 @@ template<typename T> struct MergePatternDecl;
void outOfLineInlineUseRightF(void (OutOfLineInline<int>::*)() = &OutOfLineInline<int>::f);
void outOfLineInlineUseRightG(void (OutOfLineInline<int>::*)() = &OutOfLineInline<int>::g);
void outOfLineInlineUseRightH(void (OutOfLineInline<int>::*)() = &OutOfLineInline<int>::h);
+
+inline int *getStaticDataMemberRight() {
+ return WithUndefinedStaticDataMember<int[]>::undefined;
+}
OpenPOWER on IntegriCloud