summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-07-06 01:04:39 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-07-06 01:04:39 +0000
commita60a6db73f36f72ed7ad1474b713630d938c42eb (patch)
tree93699dcad63fa186ad264079026c93aec9c7c477 /clang/test/Parser
parentff35c338dc3df3699f497a046d400ec146bfcf00 (diff)
downloadbcm5719-llvm-a60a6db73f36f72ed7ad1474b713630d938c42eb.tar.gz
bcm5719-llvm-a60a6db73f36f72ed7ad1474b713630d938c42eb.zip
When we see something that looks like a constructor with a return type, only issue one error, not two.
llvm-svn: 241424
Diffstat (limited to 'clang/test/Parser')
-rw-r--r--clang/test/Parser/cxx-default-delete.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx-default-delete.cpp b/clang/test/Parser/cxx-default-delete.cpp
index df24b3d0075..8766d861732 100644
--- a/clang/test/Parser/cxx-default-delete.cpp
+++ b/clang/test/Parser/cxx-default-delete.cpp
@@ -19,5 +19,5 @@ struct foo {
void baz() = delete;
struct quux {
- int quux() = default; // expected-error{{constructor cannot have a return type}} expected-error {{member 'quux' has the same name as its class}}
+ int quux() = default; // expected-error{{constructor cannot have a return type}}
};
OpenPOWER on IntegriCloud