minix/external/bsd/llvm/dist/clang/test/SemaObjCXX/crash.mm
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

23 lines
505 B
Text

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