diff options
| author | Francois Pichet <pichet2000@gmail.com> | 2010-09-12 05:06:55 +0000 |
|---|---|---|
| committer | Francois Pichet <pichet2000@gmail.com> | 2010-09-12 05:06:55 +0000 |
| commit | 488b4a7d943bcbdf490d40868902fcd556dd4299 (patch) | |
| tree | 89c05c4065228fe18c26bfeb7f66fba1e56b4320 /clang/test | |
| parent | 86ddae50f6a4f814157e6405a4bfc9c7663a5dd9 (diff) | |
| download | bcm5719-llvm-488b4a7d943bcbdf490d40868902fcd556dd4299.tar.gz bcm5719-llvm-488b4a7d943bcbdf490d40868902fcd556dd4299.zip | |
Add basic support for Microsoft enum forward declaration.
Assigning an underlying integral type to an enum forward declaration will come in a next patch.
llvm-svn: 113716
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/SemaCXX/MicrosoftExtensions.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/MicrosoftExtensions.cpp b/clang/test/SemaCXX/MicrosoftExtensions.cpp index 93650a53f44..7cc1675f2e7 100644 --- a/clang/test/SemaCXX/MicrosoftExtensions.cpp +++ b/clang/test/SemaCXX/MicrosoftExtensions.cpp @@ -84,3 +84,7 @@ void m1() { h1<int>(&M::addP); h1(&M::subtractP); } + +//MSVC allows forward enum declaration +enum ENUM; // expected-warning {{forward references to 'enum' types are a Microsoft extension}} +ENUM *var; |

