diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-11-30 23:45:35 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-11-30 23:45:35 +0000 |
commit | b3041feaf78349f1cb782654dc8c6d842e39289f (patch) | |
tree | ec021a76b6560716c2311e4c8fff34601594e95f /clang/test/FixIt/fixit-cxx0x.cpp | |
parent | ef42154c17ccdd7838aa46880ea3d07f5516b886 (diff) | |
download | bcm5719-llvm-b3041feaf78349f1cb782654dc8c6d842e39289f.tar.gz bcm5719-llvm-b3041feaf78349f1cb782654dc8c6d842e39289f.zip |
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.
llvm-svn: 145541
Diffstat (limited to 'clang/test/FixIt/fixit-cxx0x.cpp')
-rw-r--r-- | clang/test/FixIt/fixit-cxx0x.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/clang/test/FixIt/fixit-cxx0x.cpp b/clang/test/FixIt/fixit-cxx0x.cpp index d9b8763b056..9fb647d03fc 100644 --- a/clang/test/FixIt/fixit-cxx0x.cpp +++ b/clang/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); |