aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/nested-name-spec-locations.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-02-25 20:49:16 +0000
committerDouglas Gregor <dgregor@apple.com>2011-02-25 20:49:16 +0000
commit00cf3cc2718671aa48e8da264a523b0058a8591e (patch)
tree3dffdcf9749b616398621768786227d8e7eb638f /test/SemaCXX/nested-name-spec-locations.cpp
parent774e2b4f8d23d75cbb3dfef077d4631d37f623c0 (diff)
Push nested-name-specifier source location information into
DependentScopeDeclRefExpr. Plus, give NestedNameSpecifierLoc == and != operators, since we're going to need 'em elsewhere. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126508 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/nested-name-spec-locations.cpp')
-rw-r--r--test/SemaCXX/nested-name-spec-locations.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaCXX/nested-name-spec-locations.cpp b/test/SemaCXX/nested-name-spec-locations.cpp
index 85ebd90288..25914df627 100644
--- a/test/SemaCXX/nested-name-spec-locations.cpp
+++ b/test/SemaCXX/nested-name-spec-locations.cpp
@@ -61,3 +61,10 @@ void PseudoDestructorExprCheck(
PseudoDestructorExprTester<HasInnerTemplate, float> tester) {
tester.f(0); // expected-note{{in instantiation of member function}}
}
+
+template<typename T>
+struct DependentScopedDeclRefExpr {
+ void f() {
+ outer_alias::inner::X0<T>::value = 17;
+ }
+};