summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-05-04 06:44:46 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-05-04 06:44:46 +0000
commit22262abd78af0b35b8c8fc37b8ef97c71b3467b2 (patch)
tree84226e817bb343af5882c6f2aa729777302fc3fc /clang/test
parent513db4d9f425d36df4bd9388d4c40a4c6afd1e1d (diff)
downloadbcm5719-llvm-22262abd78af0b35b8c8fc37b8ef97c71b3467b2.tar.gz
bcm5719-llvm-22262abd78af0b35b8c8fc37b8ef97c71b3467b2.zip
Don't build a call expression referring to a function which we're not allowed
to use. This makes very little difference right now (other than suppressing follow-on errors in some cases), but will matter more once we support deduced return types (we don't want expressions with undeduced return types in the AST). llvm-svn: 181107
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/p5-cxx0x.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/p5-cxx0x.cpp b/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/p5-cxx0x.cpp
index d55de08144b..1ed93b13754 100644
--- a/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/p5-cxx0x.cpp
+++ b/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/p5-cxx0x.cpp
@@ -41,7 +41,9 @@ decltype(
PD(), // expected-error {{private destructor}}
PD()) pd1; // expected-error {{private destructor}}
decltype(DD(), // expected-error {{deleted function}}
- DD()) dd1; // expected-error {{deleted function}}
+ DD()) dd1;
+decltype(A(),
+ DD()) dd2; // expected-error {{deleted function}}
decltype(
PD(), // expected-error {{temporary of type 'PD' has private destructor}}
0) pd2;
OpenPOWER on IntegriCloud