diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-07-06 01:04:39 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-07-06 01:04:39 +0000 |
commit | a60a6db73f36f72ed7ad1474b713630d938c42eb (patch) | |
tree | 93699dcad63fa186ad264079026c93aec9c7c477 /clang/test/SemaCXX/constructor.cpp | |
parent | ff35c338dc3df3699f497a046d400ec146bfcf00 (diff) | |
download | bcm5719-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/SemaCXX/constructor.cpp')
-rw-r--r-- | clang/test/SemaCXX/constructor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/constructor.cpp b/clang/test/SemaCXX/constructor.cpp index fa930bdb95d..105605c6e37 100644 --- a/clang/test/SemaCXX/constructor.cpp +++ b/clang/test/SemaCXX/constructor.cpp @@ -15,8 +15,7 @@ class Foo { virtual Foo(double); // expected-error{{constructor cannot be declared 'virtual'}} Foo(long) const; // expected-error{{'const' qualifier is not allowed on a constructor}} - int Foo(int, int); // expected-error{{constructor cannot have a return type}} \ - // expected-error{{member 'Foo' has the same name as its class}} + int Foo(int, int); // expected-error{{constructor cannot have a return type}} volatile Foo(float); // expected-error{{constructor cannot have a return type}} }; |