Pass -fexceptions to all tests that use try/catch/throw.
llvm-svn: 126037
This commit is contained in:
parent
0cf82f6ad0
commit
479d6f51e3
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -analyze -analyzer-checker=debug.DumpCFG -cfg-add-implicit-dtors %s 2>&1 | FileCheck %s
|
||||
// RUN: %clang_cc1 -fexceptions -analyze -analyzer-checker=debug.DumpCFG -cfg-add-implicit-dtors %s 2>&1 | FileCheck %s
|
||||
// XPASS: *
|
||||
|
||||
class A {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-checker=core.DeadStores -verify -Wno-unreachable-code %s
|
||||
// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-mem -analyzer-store=basic -analyzer-constraints=basic -analyzer-checker=core.DeadStores -verify -Wno-unreachable-code %s
|
||||
// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-mem -analyzer-store=basic -analyzer-constraints=range -analyzer-checker=core.DeadStores -verify -Wno-unreachable-code %s
|
||||
// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-mem -analyzer-store=region -analyzer-constraints=basic -analyzer-checker=core.DeadStores -verify -Wno-unreachable-code %s
|
||||
// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-mem -analyzer-store=region -analyzer-constraints=range -analyzer-checker=core.DeadStores -verify -Wno-unreachable-code %s
|
||||
// RUN: %clang_cc1 -fexceptions -analyze -analyzer-experimental-internal-checks -analyzer-checker=core.DeadStores -verify -Wno-unreachable-code %s
|
||||
// RUN: %clang_cc1 -fexceptions -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-mem -analyzer-store=basic -analyzer-constraints=basic -analyzer-checker=core.DeadStores -verify -Wno-unreachable-code %s
|
||||
// RUN: %clang_cc1 -fexceptions -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-mem -analyzer-store=basic -analyzer-constraints=range -analyzer-checker=core.DeadStores -verify -Wno-unreachable-code %s
|
||||
// RUN: %clang_cc1 -fexceptions -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-mem -analyzer-store=region -analyzer-constraints=basic -analyzer-checker=core.DeadStores -verify -Wno-unreachable-code %s
|
||||
// RUN: %clang_cc1 -fexceptions -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-mem -analyzer-store=region -analyzer-constraints=range -analyzer-checker=core.DeadStores -verify -Wno-unreachable-code %s
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Basic dead store checking (but in C++ mode).
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -verify %s
|
||||
|
||||
// C++0x [class.access]p4:
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -verify %s -std=c++0x
|
||||
void f() {
|
||||
auto a = a; // expected-error{{variable 'a' declared with 'auto' type cannot appear in its own initializer}}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -verify %s
|
||||
|
||||
// The object declared in an exception-declaration or, if the
|
||||
// exception-declaration does not specify a name, a temporary (12.2)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S -emit-llvm -std=c++0x -include %S/ser.h %s -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-pch -o %t-ser.pch -std=c++0x -x c++ %S/ser.h
|
||||
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S -emit-llvm -std=c++0x -include-pch %t-ser.pch %s -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -fexceptions -triple x86_64-apple-darwin10 -S -emit-llvm -std=c++0x -include %S/ser.h %s -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -fexceptions -triple x86_64-apple-darwin10 -emit-pch -o %t-ser.pch -std=c++0x -x c++ %S/ser.h
|
||||
// RUN: %clang_cc1 -fexceptions -triple x86_64-apple-darwin10 -S -emit-llvm -std=c++0x -include-pch %t-ser.pch %s -o - | FileCheck %s
|
||||
|
||||
struct D {
|
||||
~D() throw();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -fms-extensions %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -verify -std=c++0x -fms-extensions %s
|
||||
|
||||
#define P(e) static_assert(noexcept(e), "expected nothrow")
|
||||
#define N(e) static_assert(!noexcept(e), "expected throw")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -fexceptions -std=c++0x -fsyntax-only -verify %s
|
||||
class X {
|
||||
X(const X&);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -std=c++0x -fblocks -fms-extensions -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -fexceptions -std=c++0x -fblocks -fms-extensions -fsyntax-only -verify %s
|
||||
|
||||
template<typename T, typename U> struct pair;
|
||||
template<typename ...> struct tuple;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -emit-llvm-only %s
|
||||
// RUN: %clang_cc1 -fexceptions -emit-llvm-only %s
|
||||
|
||||
// PR5863
|
||||
class E { };
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm %s -o - > %t
|
||||
// RUN: %clang_cc1 -fexceptions -triple x86_64-apple-darwin10 -emit-llvm %s -o - > %t
|
||||
// RUN: FileCheck %s -check-prefix=1 < %t
|
||||
// RUN: FileCheck %s -check-prefix=2 < %t
|
||||
|
||||
|
|
|
@ -132,6 +132,7 @@ X test4(bool B) {
|
|||
exit(1);
|
||||
}
|
||||
|
||||
#ifdef __EXCEPTIONS
|
||||
// CHECK-EH: define void @_Z5test5
|
||||
void may_throw();
|
||||
X test5() {
|
||||
|
@ -144,3 +145,4 @@ X test5() {
|
|||
return x;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -emit-llvm-only -verify %s -Wno-unreachable-code
|
||||
// RUN: %clang_cc1 -fexceptions -emit-llvm-only -verify %s -Wno-unreachable-code
|
||||
|
||||
int val = 42;
|
||||
int& test1() {
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
// Test this without pch.
|
||||
// RUN: %clang_cc1 -include %S/cxx-templates.h -verify %s -ast-dump -o -
|
||||
// RUN: %clang_cc1 -include %S/cxx-templates.h %s -emit-llvm -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -fexceptions -include %S/cxx-templates.h -verify %s -ast-dump -o -
|
||||
// RUN: %clang_cc1 -fexceptions -include %S/cxx-templates.h %s -emit-llvm -o - | FileCheck %s
|
||||
|
||||
// Test with pch.
|
||||
// RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/cxx-templates.h
|
||||
// RUN: %clang_cc1 -include-pch %t -verify %s -ast-dump -o -
|
||||
// RUN: %clang_cc1 -include-pch %t %s -emit-llvm -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -fexceptions -x c++-header -emit-pch -o %t %S/cxx-templates.h
|
||||
// RUN: %clang_cc1 -fexceptions -include-pch %t -verify %s -ast-dump -o -
|
||||
// RUN: %clang_cc1 -fexceptions -include-pch %t %s -emit-llvm -o - | FileCheck %s
|
||||
|
||||
// CHECK: define weak_odr void @_ZN2S4IiE1mEv
|
||||
// CHECK: define linkonce_odr void @_ZN2S3IiE1mEv
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Test this without pch.
|
||||
// RUN: %clang_cc1 -include %S/cxx_exprs.h -std=c++0x -fsyntax-only -verify %s -ast-dump
|
||||
// RUN: %clang_cc1 -fexceptions -include %S/cxx_exprs.h -std=c++0x -fsyntax-only -verify %s -ast-dump
|
||||
|
||||
// Test with pch. Use '-ast-dump' to force deserialization of function bodies.
|
||||
// RUN: %clang_cc1 -x c++-header -std=c++0x -emit-pch -o %t %S/cxx_exprs.h
|
||||
// RUN: %clang_cc1 -std=c++0x -include-pch %t -fsyntax-only -verify %s -ast-dump
|
||||
// RUN: %clang_cc1 -fexceptions -x c++-header -std=c++0x -emit-pch -o %t %S/cxx_exprs.h
|
||||
// RUN: %clang_cc1 -fexceptions -std=c++0x -include-pch %t -fsyntax-only -verify %s -ast-dump
|
||||
|
||||
int integer;
|
||||
double floating;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -verify %s
|
||||
|
||||
void f1()
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -verify %s
|
||||
|
||||
int i;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -verify -std=c++0x %s
|
||||
|
||||
// Declaration syntax checks
|
||||
[[]] int before_attr;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -Wsign-compare %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -verify -std=c++0x -Wsign-compare %s
|
||||
|
||||
// C++ rules for ?: are a lot stricter than C rules, and have to take into
|
||||
// account more conversion options.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -verify %s
|
||||
|
||||
struct A; // expected-note 4 {{forward declaration of 'A'}}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -ffreestanding %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -verify -std=c++0x -ffreestanding %s
|
||||
#include <stdint.h>
|
||||
|
||||
typedef decltype(nullptr) nullptr_t;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 %s -fsyntax-only -Wignored-qualifiers -verify
|
||||
// RUN: %clang_cc1 %s -fexceptions -fsyntax-only -Wignored-qualifiers -verify
|
||||
|
||||
int test1() {
|
||||
throw;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -verify -std=c++0x %s
|
||||
|
||||
typedef int&& irr;
|
||||
typedef irr& ilr_c1; // Collapses to int&
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -verify %s
|
||||
|
||||
class BaseEx {};
|
||||
class Ex1: public BaseEx {};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -Wunreachable-code -fblocks -verify %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -Wunreachable-code -fblocks -verify %s
|
||||
|
||||
int j;
|
||||
void bar() { }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 %s -fsyntax-only -verify -fblocks -Wunreachable-code -Wno-unused-value
|
||||
// RUN: %clang_cc1 %s -fexceptions -fsyntax-only -verify -fblocks -Wunreachable-code -Wno-unused-value
|
||||
|
||||
int &halt() __attribute__((noreturn));
|
||||
int &live();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -verify %s
|
||||
|
||||
@interface NSException @end
|
||||
void opaque();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -verify %s
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// C++ Functional Casts
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -verify %s
|
||||
template<typename T, typename U>
|
||||
struct X0 {
|
||||
void f(T x, U y) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -std=c++0x -verify %s
|
||||
// RUN: %clang_cc1 -fexceptions -fsyntax-only -std=c++0x -verify %s
|
||||
|
||||
template<typename T> struct TryCatch0 {
|
||||
void f() {
|
||||
|
|
Loading…
Reference in New Issue