1f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only %s -verify 2f4a2713aSLionel Sambuc 3f4a2713aSLionel Sambuc// <rdar://problem/11286701> 4f4a2713aSLionel Sambucnamespace std { 5f4a2713aSLionel Sambuc template<typename T, typename U> class pair; 6f4a2713aSLionel Sambuc} 7f4a2713aSLionel Sambuc 8f4a2713aSLionel Sambuc@interface NSObject 9f4a2713aSLionel Sambuc@end 10f4a2713aSLionel Sambuc 11f4a2713aSLionel Sambuc@interface Test : NSObject 12f4a2713aSLionel Sambuc@end 13f4a2713aSLionel Sambuc 14f4a2713aSLionel Sambuc@implementation Test 15f4a2713aSLionel Sambuc 16f4a2713aSLionel Sambucstruct EvilStruct { 17*0a6a1f1dSLionel Sambuc} // expected-error {{expected ';' after struct}} 18f4a2713aSLionel Sambuc 19*0a6a1f1dSLionel Sambuc typedef std::pair<int, int> IntegerPair; 20*0a6a1f1dSLionel Sambuc 21*0a6a1f1dSLionel Sambuctemplate<typename...Ts> void f(Ts); // expected-error {{unexpanded}} expected-warning {{extension}} 22f4a2713aSLionel Sambuc 23f4a2713aSLionel Sambuc@end 24