]> granicus.if.org Git - clang/commitdiff
XFAIL vtable-debug-info.cpp on WIN32 and fix curly brace.
authorFrancois Pichet <pichet2000@gmail.com>
Mon, 20 Dec 2010 05:44:28 +0000 (05:44 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Mon, 20 Dec 2010 05:44:28 +0000 (05:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122230 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExprCXX.cpp
test/CodeGenCXX/vtable-debug-info.cpp

index d23401c6660df793c0a3c49ce131ee020724f520..4ac162a9f9d05c922d836c807d2e256946821ac3 100644 (file)
@@ -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();
index c51221cd7e682ed5237d1db4d6f8e4f0c69d1097..c355406fae4acaba1e9ca524c7a7a40f316fcfba 100644 (file)
@@ -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)