Daniel Dunbar | 3573b2c | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Anders Carlsson | 1b749a0 | 2009-07-07 19:06:02 +0000 | [diff] [blame] | 2 | |
Sebastian Redl | 599d675 | 2010-09-08 00:48:43 +0000 | [diff] [blame] | 3 | struct S; // expected-note 2 {{forward declaration of 'S'}} |
Anders Carlsson | 1b749a0 | 2009-07-07 19:06:02 +0000 | [diff] [blame] | 4 | |
| 5 | void f() { |
John McCall | 9862435 | 2010-03-10 11:27:22 +0000 | [diff] [blame] | 6 | __is_pod(S); // expected-error{{incomplete type 'S' used in type trait expression}} |
Sebastian Redl | 599d675 | 2010-09-08 00:48:43 +0000 | [diff] [blame] | 7 | __is_pod(S[]); // expected-error{{incomplete type 'S' used in type trait expression}} |
Anders Carlsson | 1b749a0 | 2009-07-07 19:06:02 +0000 | [diff] [blame] | 8 | } |