expected-no-diagnostics@ does not make sense, switching to a more idiomatic form; NFC.

llvm-svn: 355601
This commit is contained in:
Aaron Ballman 2019-03-07 15:03:06 +00:00
parent eee6226c21
commit 7eb66ba14a
1 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,10 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s -Wno-error=non-pod-varargs -std=c++98
// RUN: %clang_cc1 -fsyntax-only -verify %s -Wno-error=non-pod-varargs -std=c++11
#if __cplusplus > 199711L
// expected-no-diagnostics
#endif
extern char version[];
@protocol P;
@ -22,8 +26,6 @@ void t1(D *d)
[d g:10, c];
#if __cplusplus <= 199711L // C++03 or earlier modes
// expected-warning@-2{{cannot pass object of non-POD type 'C' through variadic method; call will abort at runtime}}
#else
// expected-no-diagnostics@-4
#endif
[d g:10, version];
}