From 7dff0556ed1818f4bb06ff002fece4b9996ff95c Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Sat, 14 Dec 2013 04:49:06 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197308 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/const-init-cxx1y.cpp | 3 ++- test/CodeGenCXX/cxx11-exception-spec.cpp | 3 ++- test/CodeGenCXX/delete-two-arg.cpp | 3 ++- test/CodeGenCXX/mangle-template.cpp | 6 ++++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/test/CodeGenCXX/const-init-cxx1y.cpp b/test/CodeGenCXX/const-init-cxx1y.cpp index 978c428e07..5dd15a3528 100644 --- a/test/CodeGenCXX/const-init-cxx1y.cpp +++ b/test/CodeGenCXX/const-init-cxx1y.cpp @@ -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) {} diff --git a/test/CodeGenCXX/cxx11-exception-spec.cpp b/test/CodeGenCXX/cxx11-exception-spec.cpp index 96ea1d7f00..3b1516b925 100644 --- a/test/CodeGenCXX/cxx11-exception-spec.cpp +++ b/test/CodeGenCXX/cxx11-exception-spec.cpp @@ -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(); diff --git a/test/CodeGenCXX/delete-two-arg.cpp b/test/CodeGenCXX/delete-two-arg.cpp index f8e6bff295..be3cf1a900 100644 --- a/test/CodeGenCXX/delete-two-arg.cpp +++ b/test/CodeGenCXX/delete-two-arg.cpp @@ -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; diff --git a/test/CodeGenCXX/mangle-template.cpp b/test/CodeGenCXX/mangle-template.cpp index 0c29a254bf..ad66c5d547 100644 --- a/test/CodeGenCXX/mangle-template.cpp +++ b/test/CodeGenCXX/mangle-template.cpp @@ -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 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 void test() {} void use() { -- 2.40.0