diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2019-03-07 15:03:06 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2019-03-07 15:03:06 +0000 |
commit | 997080398003670def4126cfdec13a94c59af75c (patch) | |
tree | 0ed882bcacef532c91eac058b658f24f35c3e52f /test/SemaObjCXX | |
parent | 17416dcfc2b53749522deb7430f99caa5670dc59 (diff) | |
download | clang-997080398003670def4126cfdec13a94c59af75c.tar.gz |
expected-no-diagnostics@ does not make sense, switching to a more idiomatic form; NFC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355601 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjCXX')
-rw-r--r-- | test/SemaObjCXX/vararg-non-pod.mm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/SemaObjCXX/vararg-non-pod.mm b/test/SemaObjCXX/vararg-non-pod.mm index daf9aa92b5..58270aa2b9 100644 --- a/test/SemaObjCXX/vararg-non-pod.mm +++ b/test/SemaObjCXX/vararg-non-pod.mm @@ -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]; } |