aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/qualified-id-lookup.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-12-02 19:59:55 +0000
committerJohn McCall <rjmccall@apple.com>2009-12-02 19:59:55 +0000
commit336e7743b8e2222d8557e2cf7c100c8f878df630 (patch)
tree7f435d7b250f734a1b6d9a0ef8f244c2b35adcca /test/SemaCXX/qualified-id-lookup.cpp
parent639787c8e989d4c5381da01cff156abf888817c2 (diff)
Recognize that EnumConstantDecls can be found by lookup and are not instance
members. Fixes PR5667. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/qualified-id-lookup.cpp')
-rw-r--r--test/SemaCXX/qualified-id-lookup.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/SemaCXX/qualified-id-lookup.cpp b/test/SemaCXX/qualified-id-lookup.cpp
index 254a18de1f..5a11a0cd07 100644
--- a/test/SemaCXX/qualified-id-lookup.cpp
+++ b/test/SemaCXX/qualified-id-lookup.cpp
@@ -109,3 +109,18 @@ struct Undef { // expected-note{{definition of 'struct Undef' is not complete un
int Undef::f() {
return sizeof(Undef);
}
+
+// PR clang/5667
+namespace test1 {
+ template <typename T> struct is_class {
+ enum { value = 0 };
+ };
+
+ template <typename T> class ClassChecker {
+ bool isClass() {
+ return is_class<T>::value;
+ }
+ };
+
+ template class ClassChecker<int>;
+}