Douglas Gregor | e7be109 | 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 { |
| 17 | } // note the missing semicolon |
| 18 | |
| 19 | typedef std::pair<int, int> IntegerPair; // expected-error{{typedef declarator cannot be qualified}} \ |
| 20 | // expected-error{{typedef name must be an identifier}} \ |
| 21 | // expected-error{{expected ';' after top level declarator}} |
| 22 | |
| 23 | @end |