We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eee6226 commit 7eb66baCopy full SHA for 7eb66ba
clang/test/SemaObjCXX/vararg-non-pod.mm
@@ -2,6 +2,10 @@
2
// RUN: %clang_cc1 -fsyntax-only -verify %s -Wno-error=non-pod-varargs -std=c++98
3
// RUN: %clang_cc1 -fsyntax-only -verify %s -Wno-error=non-pod-varargs -std=c++11
4
5
+#if __cplusplus > 199711L
6
+// expected-no-diagnostics
7
+#endif
8
+
9
extern char version[];
10
11
@protocol P;
@@ -22,8 +26,6 @@ void t1(D *d)
22
26
[d g:10, c];
23
27
#if __cplusplus <= 199711L // C++03 or earlier modes
24
28
// expected-warning@-2{{cannot pass object of non-POD type 'C' through variadic method; call will abort at runtime}}
25
-#else
- // expected-no-diagnostics@-4
29
#endif
30
[d g:10, version];
31
}
0 commit comments