Chromium Code Reviews| Index: tools/clang/plugins/tests/auto_raw_pointer.cpp |
| diff --git a/tools/clang/plugins/tests/auto_raw_pointer.cpp b/tools/clang/plugins/tests/auto_raw_pointer.cpp |
| index 4e1c0f054814b48b271a960eb7a2edab6ffa368e..55214a8bbdab1e9b7e5ce9d9b05e5399acd013b4 100644 |
| --- a/tools/clang/plugins/tests/auto_raw_pointer.cpp |
| +++ b/tools/clang/plugins/tests/auto_raw_pointer.cpp |
| @@ -2,7 +2,12 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -class Foo {}; |
| +#include <utility> |
|
Nico
2016/07/01 20:00:26
This new test fails on the mac upload bots: https:
|
| + |
| +class Foo { |
| + public: |
| + void foo() {} |
| +}; |
| void f(); |
| @@ -35,7 +40,13 @@ int main() { |
| auto** double_ptr_auto_double_ptr = &int_ptr; |
| auto function_ptr = &f; |
| + auto method_ptr = &Foo::foo; |
| int *const *const volatile **const *pointer_awesomeness; |
| auto auto_awesome = pointer_awesomeness; |
| + |
| + auto& int_ptr_ref = int_ptr; |
| + const auto& const_int_ptr_ref = int_ptr; |
| + auto&& int_ptr_rref = std::move(int_ptr); |
| + const auto&& const_int_ptr_rref = std::move(int_ptr); |
| } |