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..6e789f6d37a46212bdff0e321bca7c01ed53ef1e 100644 |
--- a/tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc |
+++ b/tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc |
@@ -50,4 +50,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; |
} |