From: Reid Kleckner Date: Tue, 28 Apr 2015 22:58:25 +0000 (+0000) Subject: Fix Sema tests using __try by adding triple X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ceb94e36571b87ea68455d05eb9c0592cd8eda4;p=clang Fix Sema tests using __try by adding triple git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236057 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/__try.c b/test/Sema/__try.c index 8be93ddaee..cfb47e61d4 100644 --- a/test/Sema/__try.c +++ b/test/Sema/__try.c @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -fborland-extensions -DBORLAND -fsyntax-only -verify -fblocks %s -// RUN: %clang_cc1 -fms-extensions -fsyntax-only -verify -fblocks %s +// RUN: %clang_cc1 -triple x86_64-windows -fborland-extensions -DBORLAND -fsyntax-only -verify -fblocks %s +// RUN: %clang_cc1 -triple x86_64-windows -fms-extensions -fsyntax-only -verify -fblocks %s #define JOIN2(x,y) x ## y #define JOIN(x,y) JOIN2(x,y) diff --git a/test/SemaCXX/__try.cpp b/test/SemaCXX/__try.cpp index 28a3701488..eb4612f508 100644 --- a/test/SemaCXX/__try.cpp +++ b/test/SemaCXX/__try.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify -fborland-extensions -fcxx-exceptions %s +// RUN: %clang_cc1 -triple x86_64-windows -fsyntax-only -verify -fborland-extensions -fcxx-exceptions %s // This test is from http://docwiki.embarcadero.com/RADStudio/en/Try diff --git a/test/SemaCXX/scope-check.cpp b/test/SemaCXX/scope-check.cpp index 1d2893c7e0..9e00332985 100644 --- a/test/SemaCXX/scope-check.cpp +++ b/test/SemaCXX/scope-check.cpp @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -fsyntax-only -verify -fblocks -fcxx-exceptions -fms-extensions %s -Wno-unreachable-code -// RUN: %clang_cc1 -fsyntax-only -verify -fblocks -fcxx-exceptions -fms-extensions -std=gnu++11 %s -Wno-unreachable-code +// RUN: %clang_cc1 -triple x86_64-windows -fsyntax-only -verify -fblocks -fcxx-exceptions -fms-extensions %s -Wno-unreachable-code +// RUN: %clang_cc1 -triple x86_64-windows -fsyntax-only -verify -fblocks -fcxx-exceptions -fms-extensions -std=gnu++11 %s -Wno-unreachable-code namespace testInvalid { Invalid inv; // expected-error {{unknown type name}}