1 // RUN: %clang_cc1 -fsyntax-only -Wuninitialized -verify %s
14 int z
= i
; // expected-warning{{variable 'i' is uninitialized when used within its own initialization}}
23 void init2(struct widget
*);
26 struct widget my_widget
= ({
30 struct widget a
= (init2(&a
), a
);
34 struct widget my_widget
= ({
35 struct widget z
= my_widget
; // expected-warning{{variable 'my_widget' is uninitialized when used within its own initialization}}
36 int x
= my_widget
.x
; //FIXME: There should be an uninitialized warning here
45 b
= a
; // expected-warning{{variable 'a' is uninitialized when used within its own initialization}}
53 init2(a
); // expected-warning{{variable 'a' is uninitialized when used within its own initialization}}