summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-06-17 05:31:46 +0000
committerDouglas Gregor <dgregor@apple.com>2011-06-17 05:31:46 +0000
commit518bc4cd55459cb7f1a653d56662ddd63c26ea31 (patch)
tree772975fb10a8dc2be46b7693347a2d2efb770e53 /clang/test
parentc8d6afe1d8bc24897a5ceac83a11e1bb0ecd18d8 (diff)
downloadbcm5719-llvm-518bc4cd55459cb7f1a653d56662ddd63c26ea31.tar.gz
bcm5719-llvm-518bc4cd55459cb7f1a653d56662ddd63c26ea31.zip
Extend the deduced/actual argument type checking of C++
[temp.deduct.call]p4 to the deduction performed for 'auto', finishing the fix for PR9233. llvm-svn: 133239
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p6.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p6.cpp b/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p6.cpp
index 06aeaa690a1..8b4b7039847 100644
--- a/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p6.cpp
+++ b/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p6.cpp
@@ -54,8 +54,7 @@ void f() {
auto *fail1 = 0; // expected-error {{variable 'fail1' with type 'auto *' has incompatible initializer of type 'int'}}
int **p;
- // FIXME: due to PR9233, we get the wrong diagnostic here.
- const auto **fail2(p); // desired-error {{variable 'fail2' with type 'auto const **' has incompatible initializer of type 'int **'}} expected-error {{cannot initialize}}
+ const auto **fail2(p); // expected-error {{variable 'fail2' with type 'auto const **' has incompatible initializer of type 'int **'}}
}
struct S {
OpenPOWER on IntegriCloud