summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-static-var.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-02-17 06:52:25 +0000
committerDouglas Gregor <dgregor@apple.com>2011-02-17 06:52:25 +0000
commitb0f2ea9e9ecb87ce0f4f59b8b49be5dc9391aa41 (patch)
tree58961bbceea5092a0693b7c78d215d418e5bf398 /clang/test/SemaTemplate/instantiate-static-var.cpp
parent83f4cee1999d5fd8cc866b26d6eefe1a131870aa (diff)
downloadbcm5719-llvm-b0f2ea9e9ecb87ce0f4f59b8b49be5dc9391aa41.tar.gz
bcm5719-llvm-b0f2ea9e9ecb87ce0f4f59b8b49be5dc9391aa41.zip
When printing a qualified type, look through a substituted template
parameter type to see what's behind it, so that we don't end up printing silly things like "float const *" when "const float *" would make more sense. Also, replace the pile of "isa" tests with a simple switch enumerating all of the cases, making a few more obvious cases use prefix qualifiers. llvm-svn: 125729
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-static-var.cpp')
-rw-r--r--clang/test/SemaTemplate/instantiate-static-var.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaTemplate/instantiate-static-var.cpp b/clang/test/SemaTemplate/instantiate-static-var.cpp
index cd25ccb3d31..0c060752483 100644
--- a/clang/test/SemaTemplate/instantiate-static-var.cpp
+++ b/clang/test/SemaTemplate/instantiate-static-var.cpp
@@ -11,7 +11,7 @@ X<int, 0> xi0; // expected-note{{in instantiation of template class 'X<int, 0>'
template<typename T>
class Y {
- static const T value = 0; // expected-warning{{in-class initializer for static data member of type 'float const' is a C++0x extension}}
+ static const T value = 0; // expected-warning{{in-class initializer for static data member of type 'const float' is a C++0x extension}}
};
Y<float> fy; // expected-note{{in instantiation of template class 'Y<float>' requested here}}
OpenPOWER on IntegriCloud