aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/temp_class_spec.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-09-11 07:25:08 +0000
committerJohn McCall <rjmccall@apple.com>2009-09-11 07:25:08 +0000
commit9cc7807e1622c2f945b607bdd39dd283df5e7bb5 (patch)
tree6f0f78fbe2e91afc5c80350049553e2b4f17b2e0 /test/SemaTemplate/temp_class_spec.cpp
parent136a6988960ac3aeb96f298da7a1a182db7217cd (diff)
Track a class template specialization's point of instantiation separately
from its location. Initialize appropriately. When implicitly creating a declaration of a class template specialization after encountering the first reference to it, use the pattern class's location instead of the location of the first reference. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/temp_class_spec.cpp')
-rw-r--r--test/SemaTemplate/temp_class_spec.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/SemaTemplate/temp_class_spec.cpp b/test/SemaTemplate/temp_class_spec.cpp
index e625009c46..cf206d162f 100644
--- a/test/SemaTemplate/temp_class_spec.cpp
+++ b/test/SemaTemplate/temp_class_spec.cpp
@@ -1,6 +1,6 @@
// RUN: clang-cc -fsyntax-only -verify %s
template<typename T>
-struct is_pointer {
+struct is_pointer { // expected-error{{partial ordering}}
static const bool value = false;
};
@@ -16,8 +16,7 @@ struct is_pointer<const T*> {
int array0[is_pointer<int>::value? -1 : 1];
int array1[is_pointer<int*>::value? 1 : -1];
-int array2[is_pointer<const int*>::value? 1 : -1]; // expected-error{{partial ordering}} \
-// expected-error{{negative}}
+int array2[is_pointer<const int*>::value? 1 : -1]; // expected-error{{negative}}
template<typename T>
struct is_lvalue_reference {