summaryrefslogtreecommitdiffstats
path: root/libcxx/test/utilities/memory/unique.ptr/unique.ptr.runtime
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-09-03 04:32:08 +0000
committerJustin Bogner <mail@justinbogner.com>2014-09-03 04:32:08 +0000
commit33a2a2ed1a4c70995fb540c0bec63bf0defaf720 (patch)
tree89987a521162601731db06e5ff653b5a27e35406 /libcxx/test/utilities/memory/unique.ptr/unique.ptr.runtime
parent73b21d8fa15295bca14f2ef7328cc295ab7761f3 (diff)
downloadbcm5719-llvm-33a2a2ed1a4c70995fb540c0bec63bf0defaf720.tar.gz
bcm5719-llvm-33a2a2ed1a4c70995fb540c0bec63bf0defaf720.zip
test: Allow using clang -verify for failures rather than exit 1
Currently, failure tests work by checking that compilation exits 1. This can lead to tests that fail for the wrong reason, so it'd be preferable to convert them to check for specific errors. This adds use_clang_verify parameter that runs failure tests using clang's -verify flag. I'll convert some tests in subsequent commits, and once all of the tests are converted we should key this on whether cxx_under_test is clang. I've also converted one of the unique.ptr tests, since it's the one that motivated the idea of using clang -verify when possible in the review of r216317. llvm-svn: 217009
Diffstat (limited to 'libcxx/test/utilities/memory/unique.ptr/unique.ptr.runtime')
-rw-r--r--libcxx/test/utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.ctor/default01.fail.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/test/utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.ctor/default01.fail.cpp b/libcxx/test/utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.ctor/default01.fail.cpp
index 00a08bcbac1..140b203b673 100644
--- a/libcxx/test/utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.ctor/default01.fail.cpp
+++ b/libcxx/test/utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.ctor/default01.fail.cpp
@@ -19,8 +19,9 @@
class Deleter
{
-
- Deleter() {}
+ // expected-error@memory:* {{base class 'Deleter' has private default constructor}}
+ // expected-note@memory:* + {{in instantiation of member function}}
+ Deleter() {} // expected-note {{implicitly declared private here}}
public:
OpenPOWER on IntegriCloud