Debian Codegraph @

clang/test/Parser/ms-empty-enum.c

raw
1 // RUN: %clang_cc1 %s -fsyntax-only -Wmicrosoft -verify -fms-extensions
2
3 typedef enum tag1 { } A; // expected-warning {{empty enumeration types are a Microsoft extension}}
4 typedef enum tag2 { } B; // expected-warning {{empty enumeration types are a Microsoft extension}}
5 typedef enum : unsigned { } C; // expected-warning {{enumeration types with a fixed underlying type are a Microsoft extension}}\
6 // expected-warning {{empty enumeration types are a Microsoft extension}}