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 | 65b2c4c3817beb0f0e456fafb921c5156d80dd00 (patch) | |
tree | ac4f1c53bd0b77c5480cdd059b341c64d9c8300b /clang/test/SemaTemplate/class-template-spec.cpp | |
parent | 805dd4cac78bbadc1d916a6b2fbdf5cbb106be91 (diff) | |
download | bcm5719-llvm-65b2c4c3817beb0f0e456fafb921c5156d80dd00.tar.gz bcm5719-llvm-65b2c4c3817beb0f0e456fafb921c5156d80dd00.zip |
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.
llvm-svn: 66560
Diffstat (limited to 'clang/test/SemaTemplate/class-template-spec.cpp')
-rw-r--r-- | clang/test/SemaTemplate/class-template-spec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaTemplate/class-template-spec.cpp b/clang/test/SemaTemplate/class-template-spec.cpp index 023ba381ec4..90ab39f32e9 100644 --- a/clang/test/SemaTemplate/class-template-spec.cpp +++ b/clang/test/SemaTemplate/class-template-spec.cpp @@ -19,7 +19,7 @@ int test_incomplete_specs(A<double, double> *a1, A<double> *a2) { (void)a1->x; // expected-error{{incomplete definition of type 'A<double, double>'}} - (void)a2->x; // expected-error{{implicit instantiation of undefined template 'struct A'}} + (void)a2->x; // expected-error{{implicit instantiation of undefined template 'struct A<double, int>'}} } typedef float FLOAT; |