1 // RUN: %clang_cc1 %s -fsyntax-only -verify -pedantic
3 struct emp_1 { // expected-warning {{empty struct is a GNU extension}}
6 union emp_2 { // expected-warning {{empty union is a GNU extension}}
9 struct emp_3 { // expected-warning {{struct without named members is a GNU extension}}
13 union emp_4 { // expected-warning {{union without named members is a GNU extension}}
17 struct emp_5 { // expected-warning {{struct without named members is a GNU extension}}
22 union emp_6 { // expected-warning {{union without named members is a GNU extension}}
27 struct nonamed_1 { // expected-warning {{struct without named members is a GNU extension}}
31 union nonamed_2 { // expected-warning {{union without named members is a GNU extension}}
35 struct nonamed_3 { // expected-warning {{struct without named members is a GNU extension}}
40 union nonamed_4 { // expected-warning {{union without named members is a GNU extension}}