summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/fixit.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-12-19 02:07:47 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-12-19 02:07:47 +0000
commita865a1683aeaaeedfb47e0a2d1cb539d513118e5 (patch)
treec5c289a3df40cabb219afa3bca08f137cf12bb18 /clang/test/FixIt/fixit.cpp
parentaeb50b38053db6b1697447c89b96d3e86c9e7136 (diff)
downloadbcm5719-llvm-a865a1683aeaaeedfb47e0a2d1cb539d513118e5.tar.gz
bcm5719-llvm-a865a1683aeaaeedfb47e0a2d1cb539d513118e5.zip
PR21969: Improve diagnostics for a conversion function that has any pieces of a
declared return type (including a trailing-return-type in C++14). llvm-svn: 224561
Diffstat (limited to 'clang/test/FixIt/fixit.cpp')
-rw-r--r--clang/test/FixIt/fixit.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/FixIt/fixit.cpp b/clang/test/FixIt/fixit.cpp
index 20b5b52c112..585c216f90d 100644
--- a/clang/test/FixIt/fixit.cpp
+++ b/clang/test/FixIt/fixit.cpp
@@ -381,3 +381,9 @@ struct H : A // expected-error{{expected '{' after base class list}}
};
#endif
}
+
+struct conversion_operator {
+ conversion_operator::* const operator int(); // expected-error {{put the complete type after 'operator'}}
+ // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:3-[[@LINE-1]]:32}:""
+ // CHECK: fix-it:"{{.*}}":{[[@LINE-2]]:44-[[@LINE-2]]:44}:" conversion_operator::* const"
+};
OpenPOWER on IntegriCloud