2010-04-29 04:02:30 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
|
|
|
|
struct s; // expected-note 7 {{forward declaration of 'struct s'}}
|
|
|
|
|
|
|
|
// standard string matching
|
|
|
|
struct s s1; // expected-error {{tentative definition has type 'struct s' that is never completed}}
|
|
|
|
struct s s2; // expected-error {{tentative definition has type}}
|
|
|
|
|
|
|
|
// regex matching
|
2013-12-12 07:40:50 +08:00
|
|
|
struct s r1; // expected-error {{tentative definition has type 'struct s' that is never completed}}
|
2013-12-14 09:07:05 +08:00
|
|
|
struct s r2; // expected-error-re {{tentative definition has type '{{.*[[:space:]]*.*}}' that is never completed}}
|
|
|
|
struct s r3; // expected-error-re {{tentative definition has type '{{(.*)[[:space:]]*(.*)}}' that is never completed}}
|
|
|
|
struct s r4; // expected-error-re {{{{^}}tentative}}
|
|
|
|
struct s r5; // expected-error-re {{completed{{$}}}}
|