Skip to content

Commit 7eb66ba

Browse files
committed
expected-no-diagnostics@ does not make sense, switching to a more idiomatic form; NFC.
llvm-svn: 355601
1 parent eee6226 commit 7eb66ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang/test/SemaObjCXX/vararg-non-pod.mm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// RUN: %clang_cc1 -fsyntax-only -verify %s -Wno-error=non-pod-varargs -std=c++98
33
// RUN: %clang_cc1 -fsyntax-only -verify %s -Wno-error=non-pod-varargs -std=c++11
44

5+
#if __cplusplus > 199711L
6+
// expected-no-diagnostics
7+
#endif
8+
59
extern char version[];
610

711
@protocol P;
@@ -22,8 +26,6 @@ void t1(D *d)
2226
[d g:10, c];
2327
#if __cplusplus <= 199711L // C++03 or earlier modes
2428
// expected-warning@-2{{cannot pass object of non-POD type 'C' through variadic method; call will abort at runtime}}
25-
#else
26-
// expected-no-diagnostics@-4
2729
#endif
2830
[d g:10, version];
2931
}

0 commit comments

Comments
 (0)