diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-10 18:33:27 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-10 18:33:27 +0000 |
commit | 98137534e612c274ba270af99d73429043957e53 (patch) | |
tree | 105f80f30754a9ed27dd8239bdec9585dd3dfd85 /test/SemaTemplate/class-template-id-2.cpp | |
parent | 4e16d0478407b556c819b5836a3564a9fdee8d5f (diff) | |
download | clang-98137534e612c274ba270af99d73429043957e53.tar.gz |
Add pretty-printing for class template specializations, e.g.,
'struct A<double, int>'
In the "template instantiation depth exceeded" message, print
"-ftemplate-depth-N" rather than "-ftemplate-depth=N".
An unnamed tag type that is declared with a typedef, e.g.,
typedef struct { int x, y; } Point;
can be used as a template argument. Allow this, and check that we get
sensible pretty-printing for such things.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66560 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/class-template-id-2.cpp')
-rw-r--r-- | test/SemaTemplate/class-template-id-2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaTemplate/class-template-id-2.cpp b/test/SemaTemplate/class-template-id-2.cpp index 3014208b6e..5499c50a94 100644 --- a/test/SemaTemplate/class-template-id-2.cpp +++ b/test/SemaTemplate/class-template-id-2.cpp @@ -4,7 +4,7 @@ namespace N { template<> class A<int> { }; - template<> class A<float>; // expected-note{{forward declaration of 'class A'}} + template<> class A<float>; // expected-note{{forward declaration of 'class A<float>'}} class B : public A<int> { }; } |