From 8423df927eb6b24e8821d557c1a26c4cd0f44fcf Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Fri, 5 Jun 2015 22:40:53 +0000 Subject: Move a test from static-assert.cpp to DeclPrinterTest It's better not to rely on the diagnostics engine to pretty print the argument to decltype. Instead, exercise the functionality in DeclPrinterTest. llvm-svn: 239197 --- clang/test/SemaCXX/static-assert.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'clang/test/SemaCXX/static-assert.cpp') diff --git a/clang/test/SemaCXX/static-assert.cpp b/clang/test/SemaCXX/static-assert.cpp index 52be1a39042..7de4d07b50b 100644 --- a/clang/test/SemaCXX/static-assert.cpp +++ b/clang/test/SemaCXX/static-assert.cpp @@ -51,12 +51,3 @@ StaticAssertProtected sap2; // expected-note {{instantiation}} static_assert(true); // expected-warning {{C++1z extension}} static_assert(false); // expected-error-re {{failed{{$}}}} expected-warning {{extension}} - -void PR23756() { - struct { // expected-note 2 {{no known conversion from}} - } _ = decltype( // expected-error {{no viable conversion}} - ({ // expected-warning {{no effect in an unevaluated context}} - static_assert(true); // expected-warning {{C++1z extension}} - 1; - })){}; -} -- cgit v1.2.3