================
@@ -0,0 +1,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}}\
----------------
erichkeane wrote:
I'm a little confused here as to the order of warnings/what we should do. I
suspect @AaronBallman and I need to spend some time figuring out/discussing
what we're looking for.
I'm not sure about the suppressing the 2nd warning, there is perhaps a 'we
should do both' kinda thing since one might be disabled, but it also looks
silly.
Ping this in another ~week and a half, and Aaron and I can discuss it (he
should be back by then!).
https://github.com/llvm/llvm-project/pull/159981
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits