[libcxx] r349364 - Expect Clang diagnostics in std::launder test
Eric Fiselier
eric at efcs.ca
Mon Dec 17 08:56:24 PST 2018
Author: ericwf
Date: Mon Dec 17 08:56:24 2018
New Revision: 349364
URL: http://llvm.org/viewvc/llvm-project?rev=349364&view=rev
Log:
Expect Clang diagnostics in std::launder test
Modified:
libcxx/trunk/test/std/language.support/support.dynamic/ptr.launder/launder.types.fail.cpp
Modified: libcxx/trunk/test/std/language.support/support.dynamic/ptr.launder/launder.types.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.dynamic/ptr.launder/launder.types.fail.cpp?rev=349364&r1=349363&r2=349364&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.dynamic/ptr.launder/launder.types.fail.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.dynamic/ptr.launder/launder.types.fail.cpp Mon Dec 17 08:56:24 2018
@@ -29,6 +29,8 @@ int main ()
(void) std::launder((const void *) nullptr);
(void) std::launder(( volatile void *) nullptr);
(void) std::launder((const volatile void *) nullptr); // expected-error-re at new:* 4 {{static_assert failed{{.*}} "can't launder cv-void"}}
+ // expected-error at new:* 4 {{void pointer argument to '__builtin_launder' is not allowed}}
(void) std::launder(foo); // expected-error-re at new:* 1 {{static_assert failed{{.*}} "can't launder functions"}}
+ // expected-error at new:* {{function pointer argument to '__builtin_launder' is not allowed}}
}
More information about the libcxx-commits
mailing list