| Douglas Gregor | 205b068 | 2012-04-30 18:13:01 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only %s -verify | 
|  | 2 |  | 
|  | 3 | // <rdar://problem/11286701> | 
|  | 4 | namespace std { | 
|  | 5 | template<typename T, typename U> class pair; | 
|  | 6 | } | 
|  | 7 |  | 
|  | 8 | @interface NSObject | 
|  | 9 | @end | 
|  | 10 |  | 
|  | 11 | @interface Test : NSObject | 
|  | 12 | @end | 
|  | 13 |  | 
|  | 14 | @implementation Test | 
|  | 15 |  | 
|  | 16 | struct EvilStruct { | 
| Richard Smith | 698875a | 2013-11-20 23:40:57 +0000 | [diff] [blame^] | 17 | } // expected-error {{expected ';' after struct}} | 
| Douglas Gregor | 205b068 | 2012-04-30 18:13:01 +0000 | [diff] [blame] | 18 |  | 
| Richard Smith | 698875a | 2013-11-20 23:40:57 +0000 | [diff] [blame^] | 19 | typedef std::pair<int, int> IntegerPair; | 
|  | 20 |  | 
|  | 21 | template<typename...Ts> void f(Ts); // expected-error {{unexpanded}} expected-warning {{extension}} | 
| Douglas Gregor | 205b068 | 2012-04-30 18:13:01 +0000 | [diff] [blame] | 22 |  | 
|  | 23 | @end |