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

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 7 07:03:07 PST 2019


Author: aaronballman
Date: Thu Mar  7 07:03:06 2019
New Revision: 355601

URL: http://llvm.org/viewvc/llvm-project?rev=355601&view=rev
Log:
expected-no-diagnostics@ does not make sense, switching to a more idiomatic form; NFC.

Modified:
    cfe/trunk/test/SemaObjCXX/vararg-non-pod.mm

Modified: cfe/trunk/test/SemaObjCXX/vararg-non-pod.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/vararg-non-pod.mm?rev=355601&r1=355600&r2=355601&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjCXX/vararg-non-pod.mm (original)
+++ cfe/trunk/test/SemaObjCXX/vararg-non-pod.mm Thu Mar  7 07:03:06 2019
@@ -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 at -2{{cannot pass object of non-POD type 'C' through variadic method; call will abort at runtime}}
-#else
-  // expected-no-diagnostics at -4
 #endif
   [d g:10, version];
 }




More information about the cfe-commits mailing list