xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/MicrosoftCompatibility-cxx98.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -triple i686-pc-win32 -fsyntax-only -std=c++98 -Wmicrosoft -verify -fms-compatibility -fexceptions -fcxx-exceptions
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc //MSVC allows forward enum declaration
5*f4a2713aSLionel Sambuc enum ENUM; // expected-warning {{forward references to 'enum' types are a Microsoft extension}}
6*f4a2713aSLionel Sambuc ENUM *var = 0;
7*f4a2713aSLionel Sambuc ENUM var2 = (ENUM)3;
8*f4a2713aSLionel Sambuc enum ENUM1* var3 = 0;// expected-warning {{forward references to 'enum' types are a Microsoft extension}}
9