forked from OSchip/llvm-project
Remove 'not' from some CodeGen tests
These were just missing an expected-no-diagnostics directive. Also add -std=c++11 to a test warning noisly about extensions. llvm-svn: 197308
This commit is contained in:
parent
abc227be82
commit
82d14cddb6
|
@ -1,4 +1,5 @@
|
|||
// RUN: not %clang_cc1 -verify -triple x86_64-apple-darwin -emit-llvm -o - %s -std=c++1y | FileCheck %s
|
||||
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin -emit-llvm -o - %s -std=c++1y | FileCheck %s
|
||||
// expected-no-diagnostics
|
||||
|
||||
struct A {
|
||||
constexpr A() : n(1) {}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// RUN: not %clang_cc1 -std=c++11 -emit-llvm %s -o - -verify -fexceptions -fcxx-exceptions -triple x86_64-linux-gnu | FileCheck %s
|
||||
// RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o - -verify -fexceptions -fcxx-exceptions -triple x86_64-linux-gnu | FileCheck %s
|
||||
// expected-no-diagnostics
|
||||
|
||||
void h();
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// RUN: not %clang_cc1 -triple i686-pc-linux-gnu %s -o - -emit-llvm -verify | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple i686-pc-linux-gnu %s -o - -emit-llvm -verify | FileCheck %s
|
||||
// expected-no-diagnostics
|
||||
|
||||
typedef __typeof(sizeof(int)) size_t;
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -o - %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -verify -Wno-return-type -Wno-main -std=c++11 -emit-llvm -cxx-abi itanium -o - %s | FileCheck %s
|
||||
// expected-no-diagnostics
|
||||
|
||||
namespace test1 {
|
||||
int x;
|
||||
template <int& D> class T { };
|
||||
|
@ -156,7 +158,7 @@ namespace test11 {
|
|||
|
||||
namespace test12 {
|
||||
// Make sure we can mangle non-type template args with internal linkage.
|
||||
static int f();
|
||||
static int f() {}
|
||||
const int n = 10;
|
||||
template<typename T, T v> void test() {}
|
||||
void use() {
|
||||
|
|
Loading…
Reference in New Issue