From ec87bb5c462bdcf09375133b4f9640684750fa35 Mon Sep 17 00:00:00 2001 From: John Thompson Date: Tue, 27 Oct 2009 14:31:53 +0000 Subject: [PATCH] Disabling some MS extensions which cause these tests to fail llvm-svn: 85236 --- clang/test/Parser/cxx-template-decl.cpp | 2 +- clang/test/Preprocessor/line-directive.c | 2 +- clang/test/SemaCXX/implicit-int.cpp | 2 +- clang/test/SemaCXX/nested-name-spec.cpp | 2 +- clang/test/SemaTemplate/nested-name-spec-template.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/clang/test/Parser/cxx-template-decl.cpp b/clang/test/Parser/cxx-template-decl.cpp index 9309b72a556e..67f52b6a67aa 100644 --- a/clang/test/Parser/cxx-template-decl.cpp +++ b/clang/test/Parser/cxx-template-decl.cpp @@ -1,4 +1,4 @@ -// RUN: clang-cc -fsyntax-only -verify %s +// RUN: clang-cc -fsyntax-only -verify -fms-extensions=0 %s // Errors export class foo { }; // expected-error {{expected template}} diff --git a/clang/test/Preprocessor/line-directive.c b/clang/test/Preprocessor/line-directive.c index ed9a6c40e5d7..4ebf95bab44c 100644 --- a/clang/test/Preprocessor/line-directive.c +++ b/clang/test/Preprocessor/line-directive.c @@ -1,4 +1,4 @@ -// RUN: clang-cc -fsyntax-only -verify -pedantic %s && +// RUN: clang-cc -fsyntax-only -verify -pedantic -fms-extensions=0 %s && // RUN: clang-cc -E %s 2>&1 | grep 'blonk.c:92:2: error: #error ABC' && // RUN: clang-cc -E %s 2>&1 | grep 'blonk.c:93:2: error: #error DEF' diff --git a/clang/test/SemaCXX/implicit-int.cpp b/clang/test/SemaCXX/implicit-int.cpp index 6fa8dd3463d3..723030516dee 100644 --- a/clang/test/SemaCXX/implicit-int.cpp +++ b/clang/test/SemaCXX/implicit-int.cpp @@ -1,4 +1,4 @@ -// RUN: clang-cc -fsyntax-only -verify %s +// RUN: clang-cc -fsyntax-only -verify -fms-extensions=0 %s x; // expected-error{{C++ requires a type specifier for all declarations}} diff --git a/clang/test/SemaCXX/nested-name-spec.cpp b/clang/test/SemaCXX/nested-name-spec.cpp index 5178557030b7..721758f4cae0 100644 --- a/clang/test/SemaCXX/nested-name-spec.cpp +++ b/clang/test/SemaCXX/nested-name-spec.cpp @@ -1,4 +1,4 @@ -// RUN: clang-cc -fsyntax-only -std=c++98 -verify %s +// RUN: clang-cc -fsyntax-only -std=c++98 -verify -fms-extensions=0 %s namespace A { struct C { static int cx; diff --git a/clang/test/SemaTemplate/nested-name-spec-template.cpp b/clang/test/SemaTemplate/nested-name-spec-template.cpp index a5aa2dcb527a..1bdc7a89d4e8 100644 --- a/clang/test/SemaTemplate/nested-name-spec-template.cpp +++ b/clang/test/SemaTemplate/nested-name-spec-template.cpp @@ -1,4 +1,4 @@ -// RUN: clang-cc -fsyntax-only -verify %s +// RUN: clang-cc -fsyntax-only -verify -fms-extensions=0 %s namespace N { namespace M {