Index: tools/clang/plugins/tests/base_passed.txt |
diff --git a/tools/clang/plugins/tests/base_passed.txt b/tools/clang/plugins/tests/base_passed.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e480380a2bc5a0b6c74acda6715640641f2f4517 |
--- /dev/null |
+++ b/tools/clang/plugins/tests/base_passed.txt |
@@ -0,0 +1,19 @@ |
+base_passed.cpp:50:27: warning: reference might be destroyed here |
+ f_bad(base::Passed(&s), s.get()); |
+ ^ |
+base_passed.cpp:50:23: note: invalidated here |
+ f_bad(base::Passed(&s), s.get()); |
+ ^ |
+base_passed.cpp:51:33: warning: reference might be destroyed here |
+ f_bad(base::Passed(s.Pass()), s.get()); |
+ ^ |
+base_passed.cpp:51:22: note: invalidated here |
+ f_bad(base::Passed(s.Pass()), s.get()); |
+ ^ |
+base_passed.cpp:57:12: warning: reference might be destroyed here |
+ h_bad2(s.get())); |
+ ^ |
+base_passed.cpp:56:26: note: invalidated here |
+ h(h_bad1(base::Passed(&s)), |
+ ^ |
+3 warnings generated. |