aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Parser/ms-empty-enum.c
blob: 790547af88babe9dd0aebc602fb2b5a93fdbf4c9 (plain)
1
2
3
4
5
6
// RUN: %clang_cc1 %s -fsyntax-only -Wmicrosoft -verify -fms-extensions

typedef enum tag1 { } A; // expected-warning {{empty enumeration types are a Microsoft extension}}
typedef enum tag2 { } B; // expected-warning {{empty enumeration types are a Microsoft extension}}
typedef enum : unsigned { } C; // expected-warning {{enumeration types with a fixed underlying type are a Microsoft extension}}\
                               // expected-warning {{empty enumeration types are a Microsoft extension}}