aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjCXX/crash.mm
blob: 345f72e6093e6ce21498681dda1599db897571dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// RUN: %clang_cc1 -fsyntax-only %s -verify 

// <rdar://problem/11286701>
namespace std {
  template<typename T, typename U> class pair;
}

@interface NSObject
@end

@interface Test : NSObject
@end

@implementation Test

struct EvilStruct {
} // note the missing semicolon

  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}}

@end