| Index: tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc
|
| diff --git a/tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc b/tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc
|
| index 6bccd9b5c33a2d7c12fe8a1d1ccf6086fc3fcfef..87c81585d534da744fdf01db136f7df19fb3064d 100644
|
| --- a/tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc
|
| +++ b/tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc
|
| @@ -4,6 +4,9 @@
|
|
|
| namespace blink {
|
|
|
| +// Note: do not add any copy or move constructors to this class: doing so will
|
| +// break test coverage that we don't clobber the class name by trying to emit
|
| +// replacements for synthesized functions.
|
| class C {
|
| public:
|
| // Make sure initializers are updated to use the new names.
|
| @@ -50,4 +53,8 @@ union U {
|
| void F() {
|
| // Test that references to a static field are correctly rewritten.
|
| blink::C::instance_count_++;
|
| + // Force instantiation of a copy constructor for blink::C to make sure field
|
| + // initializers for synthesized functions don't cause weird rewrites.
|
| + blink::C c;
|
| + blink::C c2 = c;
|
| }
|
|
|