diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-04-30 22:43:51 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-04-30 22:43:51 +0000 |
commit | 3b87038631130e391b6e4320acba1f6ffa5e4b85 (patch) | |
tree | 4be56b0be0c548495ffaf691e501c131be780da7 /clang/test | |
parent | cc6dc78046ad635bd70f59abf95fc71c7f639f99 (diff) | |
download | llvm-3b87038631130e391b6e4320acba1f6ffa5e4b85.zip llvm-3b87038631130e391b6e4320acba1f6ffa5e4b85.tar.gz llvm-3b87038631130e391b6e4320acba1f6ffa5e4b85.tar.bz2 |
Fix PR15845: apparently MSVC does not support implicit int in C++ mode.
llvm-svn: 180822
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Rewriter/rewrite-byref-in-nested-blocks.mm | 2 | ||||
-rw-r--r-- | clang/test/Sema/MicrosoftCompatibility.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/Rewriter/rewrite-byref-in-nested-blocks.mm b/clang/test/Rewriter/rewrite-byref-in-nested-blocks.mm index 022bb5f..f416b66 100644 --- a/clang/test/Rewriter/rewrite-byref-in-nested-blocks.mm +++ b/clang/test/Rewriter/rewrite-byref-in-nested-blocks.mm @@ -19,7 +19,7 @@ void f(void (^block)(void)); - (void)foo { __block int kerfluffle; // radar 7692183 - __block x; + __block int x; f(^{ f(^{ y = 42; diff --git a/clang/test/Sema/MicrosoftCompatibility.cpp b/clang/test/Sema/MicrosoftCompatibility.cpp new file mode 100644 index 0000000..15c2558 --- /dev/null +++ b/clang/test/Sema/MicrosoftCompatibility.cpp @@ -0,0 +1,4 @@ +// RUN: %clang_cc1 %s -fsyntax-only -Wno-unused-value -Wmicrosoft -verify -fms-compatibility + +// PR15845 +int foo(xxx); // expected-error{{unknown type name}} |