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 740a272 commit 0a9bc4cCopy full SHA for 0a9bc4c
clang/test/Analysis/new-user-defined.cpp
@@ -5,6 +5,9 @@ void clang_analyzer_eval(bool);
5
6
using size_t = decltype(sizeof(int));
7
8
+template <class FirstT, class... Rest>
9
+void escape(FirstT first, Rest... args);
10
+
11
namespace CustomClassType {
12
struct S {
13
int x;
@@ -21,5 +24,7 @@ void F() {
21
24
22
25
S *s3 = new S{1};
23
26
clang_analyzer_eval(1 == s3->x); // expected-warning{{TRUE}}
27
28
+ escape(s, s2, s3);
29
}
30
} // namespace CustomClassType
0 commit comments