aboutsummaryrefslogtreecommitdiff
path: root/test/FixIt/fixit-cxx0x.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2011-11-30 23:45:35 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2011-11-30 23:45:35 +0000
commit58196dc06ee27cd4150ef483123e1e3b2c772821 (patch)
tree42f8735710b4381008bc8c3d36c7cd6405ff65c8 /test/FixIt/fixit-cxx0x.cpp
parent863eb53b5c97037874129b33711e0b668ce73975 (diff)
Revert most of r145372 for now. Lookahead beyond the ';' in a function
declaration tickles a bug in the way we handle visibility pragmas. The improvement to error recovery for template function definitions declared with the 'typedef' specifier in r145372 is unrelated and not reverted here. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145541 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt/fixit-cxx0x.cpp')
-rw-r--r--test/FixIt/fixit-cxx0x.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/FixIt/fixit-cxx0x.cpp b/test/FixIt/fixit-cxx0x.cpp
index d9b8763b05..9fb647d03f 100644
--- a/test/FixIt/fixit-cxx0x.cpp
+++ b/test/FixIt/fixit-cxx0x.cpp
@@ -58,26 +58,3 @@ namespace SemiCommaTypo {
n [[]], // expected-error {{expected ';' at end of declaration}}
int o;
}
-
-int extraSemi(); // expected-error {{stray ';' in function definition}}
- = delete;
-
-class ExtraSemi {
-public:
- ExtraSemi();
- ExtraSemi(const ExtraSemi &);
- int n;
-};
-ExtraSemi::ExtraSemi(); // expected-error {{stray ';'}}
- : n(0) {
-}
-ExtraSemi::ExtraSemi(const ExtraSemi &); // expected-error {{stray ';'}}
- = default;
-
-template<typename T> T extraSemi(T t);
-
-template<typename T> T extraSemi(T t); // expected-error {{stray ';'}}
-{
- return t;
-}
-template int extraSemi(int);