From bea85d84778845edd69851dd4284a79731fb7a28 Mon Sep 17 00:00:00 2001 From: Francois Pichet Date: Mon, 20 Dec 2010 05:44:28 +0000 Subject: [PATCH] XFAIL vtable-debug-info.cpp on WIN32 and fix curly brace. llvm-svn: 122230 --- clang/lib/Sema/SemaExprCXX.cpp | 3 +-- clang/test/CodeGenCXX/vtable-debug-info.cpp | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index d23401c6660d..4ac162a9f9d0 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -374,8 +374,7 @@ Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc, // Get the CXXRecordDecl associated with QT bypassing 1 level of pointer, // reference or array type. -static CXXRecordDecl *GetCXXRecordOfUuidArg(QualType QT) -{ +static CXXRecordDecl *GetCXXRecordOfUuidArg(QualType QT) { Type* Ty = QT.getTypePtr();; if (QT->isPointerType() || QT->isReferenceType()) Ty = QT->getPointeeType().getTypePtr(); diff --git a/clang/test/CodeGenCXX/vtable-debug-info.cpp b/clang/test/CodeGenCXX/vtable-debug-info.cpp index c51221cd7e68..c355406fae4a 100644 --- a/clang/test/CodeGenCXX/vtable-debug-info.cpp +++ b/clang/test/CodeGenCXX/vtable-debug-info.cpp @@ -1,9 +1,13 @@ // RUN: %clang -c -g %s -o /dev/null // Radar 8730409 +// XFAIL: win32 // FIXME: This test crashes on Windows. -#ifndef _WIN32 +#ifdef _WIN32 +#error this test must xfail + +#else class foo { public: #define x(a) virtual void v ## a (void)