| Argyrios Kyrtzidis | 8566356 | 2010-11-08 19:14:19 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | |||||
| 3 | // http://llvm.org/PR7905 | ||||
| 4 | namespace PR7905 { | ||||
| 5 | struct S; // expected-note {{forward declaration}} | ||||
| 6 | void foo1() { | ||||
| 7 | (void)(S[]) {{3}}; // expected-error {{array has incomplete element type}} | ||||
| 8 | } | ||||
| 9 | |||||
| 10 | template <typename T> struct M { T m; }; | ||||
| 11 | void foo2() { | ||||
| 12 | (void)(M<short> []) {{3}}; | ||||
| 13 | } | ||||
| 14 | } | ||||