Skip to content

Commit 3f6984c

Browse files
committed
[FOLD] add tests
1 parent e26abaa commit 3f6984c

File tree

1 file changed

+21
-0
lines changed
  • clang/test/CXX/temp/temp.res/temp.dep/temp.dep.type

1 file changed

+21
-0
lines changed

clang/test/CXX/temp/temp.res/temp.dep/temp.dep.type/p4.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,3 +371,24 @@ namespace N1 {
371371
}
372372
};
373373
} // namespace N1
374+
375+
namespace N2 {
376+
template<typename T>
377+
struct A {
378+
struct B {
379+
using C = A;
380+
381+
void not_instantiated(A *a, B *b) {
382+
b->x; // expected-error{{no member named 'x' in 'N2::A::B'}}
383+
b->B::x; // expected-error{{no member named 'x' in 'N2::A::B'}}
384+
a->B::C::x; // expected-error{{no member named 'x' in 'A<T>'}}
385+
}
386+
};
387+
388+
void not_instantiated(A *a, B *b) {
389+
b->x;
390+
b->B::x;
391+
a->B::C::x;
392+
}
393+
};
394+
}

0 commit comments

Comments
 (0)