diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-11-20 23:40:57 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-11-20 23:40:57 +0000 |
| commit | 698875aec60f5f04e95d189a017ee6789817d466 (patch) | |
| tree | 9e0519101ed47b81f86a2c1192d057f1e77acf24 /clang/test/SemaObjCXX | |
| parent | 56215d84dc56801beeb9e7748d4ebbad71344e0c (diff) | |
| download | bcm5719-llvm-698875aec60f5f04e95d189a017ee6789817d466.tar.gz bcm5719-llvm-698875aec60f5f04e95d189a017ee6789817d466.zip | |
Fix new check for missing semicolon after struct definition to deal with the
case where the type in the following declaration is specified as a template-id,
and refactor for clarity.
llvm-svn: 195280
Diffstat (limited to 'clang/test/SemaObjCXX')
| -rw-r--r-- | clang/test/SemaObjCXX/crash.mm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/SemaObjCXX/crash.mm b/clang/test/SemaObjCXX/crash.mm index 345f72e6093..521b923cc00 100644 --- a/clang/test/SemaObjCXX/crash.mm +++ b/clang/test/SemaObjCXX/crash.mm @@ -14,10 +14,10 @@ namespace std { @implementation Test struct EvilStruct { -} // note the missing semicolon +} // expected-error {{expected ';' after struct}} - typedef std::pair<int, int> IntegerPair; // expected-error{{typedef declarator cannot be qualified}} \ -// expected-error{{typedef name must be an identifier}} \ -// expected-error{{expected ';' after top level declarator}} + typedef std::pair<int, int> IntegerPair; + +template<typename...Ts> void f(Ts); // expected-error {{unexpanded}} expected-warning {{extension}} @end |

